Jump to content

(SOLVED) Duplicate Mail


rubeendaw

Recommended Posts

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 by rubeendaw (see edit history)
Link to comment
Share on other sites

  • 2 years later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...