Jump to content

Forward the "New order" email to the administrator without using mail_alerts


alfonsogomez

Recommended Posts

Hello, the problem I have is that the email that the client receives is personalized and the email that is received with the ps_mail_alerts module does not work for me. Can you think of any way, by touching the code, so that the email that the customer receives with the purchase is also received by the administrator? Thanks

Link to comment
Share on other sites

Something like this?

https://addons.prestashop.com/en/emails-notifications/42587-bcc-all-email-to-admin.html

https://mypresta.eu/modules/administration-tools/send-a-copy-of-emails-bcc.html

Either in classes/Mail.php line with "public static function Send()"

Should look like that:

 

$send = $swift->send($message); 

Add line:

$message->setBcc(array('[email protected]'))

PS: change [email protected] to your email address

Edited by ComGrafPL (see edit history)
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...