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?
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?
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…
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.
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.
Support forum for Event Espresso 3 and Event Espresso 4.