heshkak Posted January 16, 2012 Share Posted January 16, 2012 Hi, I'm having issues with the return address of all emails sent from my site. ALL emails have a return(from) address that IS NOT THE SAME as what is entered in the contact information tab in the back office. PS_CONFIGURATION [shop Email] contains the address that is in the contact information tab (which is correct). Again, this is not what the site is using as the from address in all emails. Any ideas guys? I'm not sure where the site is puling this email address from. Thanks, Hesh Link to comment Share on other sites More sharing options...
bellini13 Posted January 16, 2012 Share Posted January 16, 2012 The Mail.php Send function uses the PS_SHOP_EMAIL config setting, is that the one you checked? Have you modified any of the Swift code under the tools/swift folder? Link to comment Share on other sites More sharing options...
heshkak Posted January 17, 2012 Author Share Posted January 17, 2012 Thanks for the responce bellini! Yes, that is the config setting I checked and I have not made any changes to the code in the swift folder. Prestashop version 1.4.4.0 Link to comment Share on other sites More sharing options...
bellini13 Posted January 17, 2012 Share Posted January 17, 2012 what i usually do in a situation like this is to add debug statements to the code, and trace what the code is doing. Do you have a specific email that you can trace in this fashion? Link to comment Share on other sites More sharing options...
heshkak Posted January 18, 2012 Author Share Posted January 18, 2012 Belini, Thanks for all your help on this. For some reason your first suggestion on changing a swift file rang a bell. I did a text search and found that some IDIOT (aka me) did modify the tools/swift/Swift/Message.php and set the "from" address. Thanks again for all your help. This one is SOLVED. Link to comment Share on other sites More sharing options...
bellini13 Posted January 18, 2012 Share Posted January 18, 2012 yea, i suspected that might have been it. I had to make a change to the Swift class on previous 1.4 versions due to a bug. Perhaps you did the same trying to fix a sendMail bug. 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