SMTP Error: Could not connect to SMTP host. Failed to connect to server

Phoca Cart - complex e-commerce extension
uwes2025
Phoca Member
Phoca Member
Posts: 21
Joined: 10 Apr 2025, 12:05

SMTP Error: Could not connect to SMTP host. Failed to connect to server

Post by uwes2025 »

Hi,

I changed the mailer in my Joomla 6 project from php to smtp. Testmails are working, but nor the checkout-process. If I am finishing the checkout-process I am getting a message: "SMTP Error: Could not connect to SMTP host. Failed to connect to server". But Joomla itself is connected to the server.

Does somebody has an idea?

Best regards Uwe
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49429
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: SMTP Error: Could not connect to SMTP host. Failed to connect to server

Post by Jan »

Hi, Phoca Cart does not use any own mail solution, it uses Joomla mail feature which can be set in Joomla Globar configuration. So if you set SMTP in Joomla, Phoca Cart then uses this Joomla mail feature. :idea:

Jan
If you find Phoca extensions useful, please support the project
uwes2025
Phoca Member
Phoca Member
Posts: 21
Joined: 10 Apr 2025, 12:05

Re: SMTP Error: Could not connect to SMTP host. Failed to connect to server

Post by uwes2025 »

Hi Jan, thank you for your quick response. I guess, I found the reason: if there is an additional email adress in an order status the error "SMTP Error: Could not connect to SMTP host. Failed to connect to server" appears. If there is no additional email adress in an order status it works without error.

Best regards Uwe
User avatar
Nidzo
Phoca Expert
Phoca Expert
Posts: 525
Joined: 07 Nov 2018, 14:55

Re: SMTP Error: Could not connect to SMTP host. Failed to connect to server

Post by Nidzo »

What version of Phoca Cart you use?
Additional email addresses are important for notifying administrators or store managers.
uwes2025
Phoca Member
Phoca Member
Posts: 21
Joined: 10 Apr 2025, 12:05

Re: SMTP Error: Could not connect to SMTP host. Failed to connect to server

Post by uwes2025 »

Hi Jan, I'm using PhocCart 6.1.0

Best regards Uwe
User avatar
Nidzo
Phoca Expert
Phoca Expert
Posts: 525
Joined: 07 Nov 2018, 14:55

Re: SMTP Error: Could not connect to SMTP host. Failed to connect to server

Post by Nidzo »

I have tested now and everything is OK
Can you enable Phoca Cart Log (Options > Main > Enable Logging > ALL) and in Joomla Global Configuration set Debug to YES and Error Reporting to Maximum.
Create order and check what debug says and check Phoca Cart System Log.
uwes2025
Phoca Member
Phoca Member
Posts: 21
Joined: 10 Apr 2025, 12:05

Re: SMTP Error: Could not connect to SMTP host. Failed to connect to server

Post by uwes2025 »

Hi Nidzo,

did you test it with SMTP?

Best regards Uwe
User avatar
Nidzo
Phoca Expert
Phoca Expert
Posts: 525
Joined: 07 Nov 2018, 14:55

Re: SMTP Error: Could not connect to SMTP host. Failed to connect to server

Post by Nidzo »

Yes
SMTP Port 465 and SMTP Security SSL/TLS
Post Reply