Jump to content

SMTP settings not effective


Recommended Posts

When I enter new SMTP settings into advanced paramaters > email they do not take effect. I was using smtp hosted by my webhost, however we switched to gmail a while ago. I never moved the store over to the new gmail server, and we're starting to get flagged as spam, since the mx records no longer point to the smtp server running on our hosts farm. 

 

So I went in tonight and entered the settings into the email > advanced parameters area and clicked save. I sent a few test messages, which never arrive in any of my google apps email addresses. I sent one to an old email address I have and it was received. 

 

Upon inspection of the mail headers, the mail is STILL coming from my hosts email server, even though in email > advanced parameters it clearly says smtp.gmail.com

 

This store has been in place for a year now, and im not certain which version we started with but I recently upgraded to 1.5.6.1. Is it possible that the mail server settings are coded into a php file or database table somewhere? Please help, this is frustrating.

Link to comment
Share on other sites

upon further investigation, the smtp server address is the only setting that is being over ridden. The username and password are being pulled from the database as expected. 

 

There has to be a static entry in prestashop somewhere that is over riding the smtp server address. Anyone have any ideas where to start?

Link to comment
Share on other sites

You would need to trace the issue starting from AdminEmailsController.php, in the function ajaxProcessSendMailTest.

 

See what this function is receiving from the browser window when you perform the SMTP test.  I suspect the browser has likely cached the old server setting.  Have you tried clearing your browser cache?

 

Also my modification (its not a module) would not resolve this issue.  The modification only resolves STARTTLS issues with various SMTP gateways.

Edited by bellini13 (see edit history)
Link to comment
Share on other sites

The problem was with the host. Their /20 got blacklisted, and weren't allowed to relay mail through level 1. They also misconfigured something with the shared hosting, which didn't allow us to connect to outside SMTP servers.

 

We have migrated to a new host, and have been able to connect to gmail using TLS. Problem is resolved. Thanks for the help bellini13

Link to comment
Share on other sites

×
×
  • Create New...