tonis Posted January 6, 2012 Share Posted January 6, 2012 Hi I want to receive o BCC copy of the users order confirmation mail. I know that there is a the module mailalerts, and it is working form me, but i would like to receive the copy of the users mail. So when i click on "reply", the recepient mail address would be the customer address and the message goes to the same "conversation". This solution (forum link) sends not a BCC, but two different mails. But if someone knows how to change it, it would be great. (It sends "copies" of all mails form the site, not only the order confirm mail) I have also tried to redirect all emails from the server as BCC in the hosting settings, but this solution works only for mails sendet directly from the mail box, not for mails sendet from the site. If someone can help ...thanks presta 1.4 Link to comment Share on other sites More sharing options...
tonis Posted January 9, 2012 Author Share Posted January 9, 2012 Ok, i have solved it on my own. In the file tools/swift/swift.php I add this code arround line 360 if ($recipients instanceof Swift_Address) { $list = new Swift_RecipientList(); $list->addTo($recipients); /* my code */ $list->addBcc('[email protected]'); /* my code end */ } Now it sends BCC of all emails sendet to customers to [email protected]. Everything seems to worsk as it should. 5 Link to comment Share on other sites More sharing options...
Berlindoor Posted May 29, 2012 Share Posted May 29, 2012 tools/swift/Swift.php great solution but in this way you receive all emails right? So if the customer orders e.g. through bank-wire I will receive 2 emails 1 Your order is placed (useful email) 2 you decided to pay with bank-wire (useless email) did you find a workaround here? Link to comment Share on other sites More sharing options...
croogle Posted June 22, 2012 Share Posted June 22, 2012 Hey tonis, This works great. Very easy, very effective. Thanx a lot from Germany. Greets, Marcus Link to comment Share on other sites More sharing options...
uspetznaz Posted October 18, 2013 Share Posted October 18, 2013 great!! thanks! Link to comment Share on other sites More sharing options...
mecollectibles Posted October 20, 2013 Share Posted October 20, 2013 I regret this does not work for version 1.5.6 Any help? Link to comment Share on other sites More sharing options...
rore Posted November 4, 2013 Share Posted November 4, 2013 Hi, I have the same problem with PS 1.5.6... Did you manage to solve this problem ? Thanks Link to comment Share on other sites More sharing options...
Guest fanfar Posted November 17, 2013 Share Posted November 17, 2013 I have the same problem with PS 1.5.6 Link to comment Share on other sites More sharing options...
Guest fanfar Posted November 19, 2013 Share Posted November 19, 2013 OK, I found solution for 1.5.6. $list->addBcc('[email protected]'); This line should be moved outside of if-statement. In correct way it should be like here: if ($recipients instanceof Swift_Address) { $list = new Swift_RecipientList(); $list->addTo($recipients); } /* my code */ $list->addBcc('[email protected]'); /* my code end */ 3 Link to comment Share on other sites More sharing options...
mecollectibles Posted January 18, 2014 Share Posted January 18, 2014 Hello Fanfar, Thanks a lot. The solution you offered works well with 1.5.6 I appreciate you help. Link to comment Share on other sites More sharing options...
Joachim Torngren Posted November 2, 2014 Share Posted November 2, 2014 (edited) Works fine on 1.6.0.9 also! tools/swift/swift.php if ($recipients instanceof Swift_Address) { $list = new Swift_RecipientList(); $list->addTo($recipients); } /* my code */ $list->addBcc('[email protected]'); /* my code end */ Edited November 2, 2014 by Joachim Torngren (see edit history) 1 Link to comment Share on other sites More sharing options...
Coloranti Posted December 28, 2014 Share Posted December 28, 2014 I confirm it's working fine in 1.6.09. Just copy the code in red into the tools/swift/swift.php file, after this: if ($recipients instanceof Swift_Address){$list = new Swift_RecipientList();$list->addTo($recipients);} /* my code */$list->addBcc('[email protected]');/* my code end */ Of course, add your own mail adress or addresses Thank you for sharing! 1 Link to comment Share on other sites More sharing options...
Max Michel Posted December 28, 2014 Share Posted December 28, 2014 I am having problems sending emails to customers, i am geting all emails that should be going to them. also i get emails when i say shipped it gos to me and not them. when i do a message to them i say send to customer and it gos to me. this is first time doing this as tired of paying people and not doing right. email me [email protected]. Iwas told to change something under tools on a line there but have no idea what i am being told how to get there and do it. Link to comment Share on other sites More sharing options...
fransjaeger Posted January 2, 2015 Share Posted January 2, 2015 Hello thanks for sharing this "hack" should be possible to set this in back office i'd like to improve it so it automatically sends the copy to admin email so change... $list->addBcc('[email protected]'); to something like $list->addBcc(SHOP_EMAIL_ADR); or $list->addBcc(SHOP_MANAGER_EMAIL_ADR); anyone know how that is done? Link to comment Share on other sites More sharing options...
fransjaeger Posted January 2, 2015 Share Posted January 2, 2015 also I'd like it only to send a copy of confirmation emails, nothing else. how is this done? THX Link to comment Share on other sites More sharing options...
domorodecmezilidmi Posted January 19, 2015 Share Posted January 19, 2015 I confirm it's working fine in 1.6.09. Just copy the code in red into the tools/swift/swift.php file, after this: if ($recipients instanceof Swift_Address) { $list = new Swift_RecipientList(); $list->addTo($recipients); } /* my code */ $list->addBcc('[email protected]'); /* my code end */ Of course, add your own mail adress or addresses Thank you for sharing! Hi, thank you much. Nobody was able to help me but I luckily found this topic and this is exactly what I wanted. Thank you once more for sharing this. Link to comment Share on other sites More sharing options...
Notesowo.pl Posted January 27, 2015 Share Posted January 27, 2015 Thanks for that, but how to add two email addresses to BCC? Link to comment Share on other sites More sharing options...
domorodecmezilidmi Posted January 28, 2015 Share Posted January 28, 2015 Sorry, but I don´t know how, this solution is good enough for me and from this reason I marked - solved - this topic. Link to comment Share on other sites More sharing options...
rincyrenin Posted April 23, 2015 Share Posted April 23, 2015 thank you for sharing.Its working fine Link to comment Share on other sites More sharing options...
Alfaheston Posted September 17, 2015 Share Posted September 17, 2015 Excellent workaround by tonis !! Thanks a Ton, and wishing the best always 4 u !! Link to comment Share on other sites More sharing options...
domorodecmezilidmi Posted July 27, 2016 Share Posted July 27, 2016 HI everybody so I have installed new PS 1.6.1.6 but there is not swift.php - any advice from anybody where to copy this code to receive copy of each email? Thank you Link to comment Share on other sites More sharing options...
dusticelli Posted September 5, 2016 Share Posted September 5, 2016 I have the same problem. After updating to 1.6.1.6 this workaround is no longer working. Link to comment Share on other sites More sharing options...
Jamiro911 Posted October 24, 2016 Share Posted October 24, 2016 Anyone for Version 1.6.1.6 because there is no swift.php Link to comment Share on other sites More sharing options...
bellini13 Posted October 24, 2016 Share Posted October 24, 2016 Solution in this thread https://www.prestashop.com/forums/topic/558967-161-bcc-all-mail-to-shopowner/?p=2423249 Link to comment Share on other sites More sharing options...
Recommended Posts