soopathemes Posted March 16, 2020 Share Posted March 16, 2020 I would like to send the order confirmation email to two admin email addresses. We receive the new order email, but this doesn't show the product details correctly due to a module we have for a "cut to size service", but the order confirmation email does. We've edited the paymentmodule.php file and added one email address and that works perfectly, but we can't seem to figure out how to get it to send to a second. Any help much appreciated! if (Validate::isEmail($this->context->customer->email)) { Mail::Send( (int) $order->id_lang, 'order_conf', Context::getContext()->getTranslator()->trans( 'Order confirmation', array(), 'Emails.Subject', $orderLanguage->locale ), $data, $this->context->customer->email, $this->context->customer->firstname . ' ' . $this->context->customer->lastname, null, null, $file_attachement, null, _PS_MAIL_DIR_, false, (int) $order->id_shop, 'd****@r******.co.uk' ); } Link to comment Share on other sites More sharing options...
soopathemes Posted March 16, 2020 Author Share Posted March 16, 2020 And also, how could we add the customer message to this email? Link to comment Share on other sites More sharing options...
NemoPS Posted March 18, 2020 Share Posted March 18, 2020 It looks like you are using the customer email as "to" parameter. You can just use an array, and an email will be sent to all of the addresses: ['[email protected]', '[email protected]'] 1 Link to comment Share on other sites More sharing options...
soopathemes Posted March 21, 2020 Author Share Posted March 21, 2020 So do I just replace this bit 'd****@r******.co.uk' with ['[email protected]', '[email protected]'] ? Do you know how we can add the customer message to this email? I've tried to follow some instructions I found on here and it just seems to add random messages to the email. Link to comment Share on other sites More sharing options...
soopathemes Posted March 23, 2020 Author Share Posted March 23, 2020 Should anyone else be looking, this works for 1.7: Link to comment Share on other sites More sharing options...
prestashopirecycle Posted June 2, 2021 Share Posted June 2, 2021 Hi, I am using 1.7. As admin I am not getting any order confirmation email. Where do I enable this feature so that I as admin get notified? Thanks!! 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