Support

Home Forums Event Espresso Premium EE3: Double Mails sending with gateway «check»

EE3: Double Mails sending with gateway «check»

Posted: May 20, 2015 at 7:31 pm

Viewing 6 reply threads


Alkis Zopoglou

May 20, 2015 at 7:31 pm

Good morning!
I have a strange issue on some running events. I like to stop the ticket-selling by invoice some days before the event. I enabled the check-gateway, but no mails were sended. So I tried with this bit of code in the file «check_ipn.php»:

function espresso_transactions_check_get_attendee_id($attendee_id) {
	if (isset($_REQUEST['id']))
		$attendee_id = $_REQUEST['id'];
	return $attendee_id;
}

function espresso_process_check($payment_data) {
	$payment_data['payment_status'] = 'Pending';
	$payment_data['txn_type'] = 'Check';
	$payment_data['txn_id'] = $payment_data['attendee_session'];
	$payment_data['txn_details'] = "paying by check";
// NEW CODE START // 
event_espresso_email_confirmations(array('session_id' => $payment_data['attendee_session'], 'send_admin_email' => 'true', 'send_attendee_email' => 'true'));
// NEW CODE STOP //
	return $payment_data;
}

Now my problem is, that I always get 2 mails as administrator and also the customer gets double confirmation mails. I tried mandrill, some smtp-plugins, no chance… Can you help me out?

Thank you in advanced,
Alkis Zopoglou


Lorenzo Orlando Caum

  • Support Staff

May 21, 2015 at 11:08 am

Hi Alkis,

I believe that is a core file so changes there would be lost when you update your software. Did you move a copy of that payment gateway over to this location?

/wp-content/uploads/espresso/gateways


Lorenzo


Alkis Zopoglou

May 21, 2015 at 12:32 pm

Hi Lorenzo,
yes, the file is located in /wp-content/uploads/espresso/gateways/check/. And if I delete my code, there is no mail going out. And with the code thera are always two… I WANT THE MIDDLE!! Just 1 mail…

So, may be there is another trick to make this?

Alkis


Josh

  • Support Staff

May 22, 2015 at 8:42 am

Hi Alkis,

You can make it happen by removing the code you added, then go to Event Espresso > General Settings > Email Settings and change the Send registration confirmation emails before payment is received? option to be Yes.


Alkis Zopoglou

May 22, 2015 at 2:49 pm

So easy…, I was searching mutch too far. Thank you!
Alkis


Dean

May 25, 2015 at 1:52 am

Glad you got it sorted. Is there anything else we can help with regarding this topic or may we mark this as resolved?


Alkis Zopoglou

May 25, 2015 at 1:58 am

Hi Dean,
you can mark it as resolved. Thank you.
Alkis

Viewing 6 reply threads

The support post ‘EE3: Double Mails sending with gateway «check»’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso