rubeendaw Posted April 16, 2019 Share Posted April 16, 2019 (edited) Hi friends, I'm in PS 1.7.5.1 In the file ps_mailalerts.php, this is: if ($dir_mail) { Mail::Send( $mail_id_lang, 'new_order', sprintf(Mail::l('New order : #%d - %s', $mail_id_lang), $order->id, $order->reference), $template_vars, // $merchant_mail, $email_corp, null, $configuration['PS_SHOP_EMAIL'], $configuration['PS_SHOP_NAME'], null, null, $dir_mail, null, $id_shop ); } I have removed $merchant_mail for $email_corp which is a variable where I keep the mail where the mail is going to be sent from which an order has been generated, but I do not know why you send me the same email twice, Do you know what can be done? With the variable from before he takes the mail from the client and sent an email, but now that the mail I put it manually I sent it twice, does anyone know why? Edited April 23, 2019 by rubeendaw (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted April 19, 2019 Share Posted April 19, 2019 Add an empty string, it needs all those parameters, you can't just comment one out, so use "" instead. 1 Link to comment Share on other sites More sharing options...
rubeendaw Posted April 23, 2019 Author Share Posted April 23, 2019 Thanks @NemoPS but I have a foreach that for some reason causes that 2 emails were sent, with that and the use of "" is already solved, thanks. Link to comment Share on other sites More sharing options...
Joey Posted December 9, 2021 Share Posted December 9, 2021 Hi! I got the similar problem after upgraded mailalert to v2.2.1. Could you tell me more detail how to solve the duplicate mail problem when have new order? Now we will get duplicate email notification when have new order. Pls try to show me the source code how to solve this. Thanks Best Regards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now