Page 1 of 1

[SOLVED] SMTP changes not reflecting - v2.3.0.2

Posted: Fri Nov 17, 2023 10:58 pm
by AdieB
I have changed the SMTP setting for emails in the admin backend to new SMTP settings. I have refreshed cache through admin / modifications and also tried deleting cache files in system/storage/cache but my system is still using the old SMTP settings. There are no SMTP settings hard-coded into my code. Any idea what it may be please?

Re: SMTP changes not reflecting - v2.3.0.2

Posted: Sat Nov 18, 2023 12:14 am
by ADD Creative
Check both your OpenCart and PHP error logs.

You could also check the settings directly in the database. They will be in the oc_setting table and the key will start config_mail_smtp_.

Re: SMTP changes not reflecting - v2.3.0.2

Posted: Mon Nov 20, 2023 7:23 pm
by paulfeakins
AdieB wrote:
Fri Nov 17, 2023 10:58 pm
but my system is still using the old SMTP settings
What makes you think that?

Re: SMTP changes not reflecting - v2.3.0.2

Posted: Mon Nov 20, 2023 8:29 pm
by AdieB
Because f I viewed my new SMTP provider backend dashboard, the email wasn't being sent via them, so I assume OC was falling back onto my previous provider? I subsequently found out that the new SMTP provider had suspended my site as it was not verified with them via DNS settings. All sorted now.

Re: SMTP changes not reflecting - v2.3.0.2

Posted: Tue Nov 21, 2023 11:52 pm
by paulfeakins
AdieB wrote:
Mon Nov 20, 2023 8:29 pm
so I assume OC was falling back onto my previous provider?
Well it can't just pluck the details out of thin air. It doesn't store previous ones anywhere, so it can't have been that.

AdieB wrote:
Mon Nov 20, 2023 8:29 pm
it was not verified with them via DNS settings. All sorted now.
Glad you found it, so please add [SOLVED] to the start of this post title.