alfonsogomez Posted December 26, 2021 Share Posted December 26, 2021 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 More sharing options...
ComGrafPL Posted December 26, 2021 Share Posted December 26, 2021 (edited) 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 December 26, 2021 by ComGrafPL (see edit history) Link to comment Share on other sites More sharing options...
alfonsogomez Posted December 26, 2021 Author Share Posted December 26, 2021 I've try change you tell me but then I receive no messages and also customer don't receive new order email Link to comment Share on other sites More sharing options...
Daresh Posted December 26, 2021 Share Posted December 26, 2021 Setting BCC for specific email templates is one of the features of the Email Toolbox module. Link to comment Share on other sites More sharing options...
alfonsogomez Posted December 26, 2021 Author Share Posted December 26, 2021 I put this: $message->setBcc(array('[email protected]')) $send = $swift->send($message); And I get error 500 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