Icarus Posted July 20, 2009 Share Posted July 20, 2009 Hello everybody,I hope someone can help.I would like to be able to:1. Know which emails the system sent to my customers2. Get a copy of the mails that went out3. Get an email from Presta whenever someone makes a purchase.Does anyone know how to do any of the above?Thanks in advance. Link to comment Share on other sites More sharing options...
tomerg3 Posted July 20, 2009 Share Posted July 20, 2009 Sounds like #1 and #3 would be solved by #2.You can look up the sendmail function and add yourself as a BCC... Link to comment Share on other sites More sharing options...
Icarus Posted July 20, 2009 Author Share Posted July 20, 2009 Thanks, yes thought about that.Found classes/Mail.php but it looks too complex - dont want to break anything there...Probably need to dig deeper - it uses something called Swift which I presume is some mail handler class.EDIT:This swift class is one nasty piece of code....It seem to be several long long files, with the only purpose of sending emails.....I have a 10 line PHP code doing more or less the same.... very ugly class.Someone said object oriented is just a way to make a simple task using complicated code - this swift class seem to match this description....I found out that I need to use some $swift->addBcc() method, and I guess I should probably use it in the Mail.php class.Anyone is familiar with this file and can recommend where to add this? Link to comment Share on other sites More sharing options...
Recommended Posts