Advertisement

SMTP Error Sending Email from J5 Server

Need help with the Administration of your Joomla! 5.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
walterwood44
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Mon Aug 12, 2013 1:54 am

SMTP Error Sending Email from J5 Server

Post by walterwood44 » Thu Sep 12, 2024 7:35 pm

Our site has a contact us form that allows a user to fill in their information and send it to us in via Gmail. We have been doing this for a very long time. Recently we started getting the following error message.

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

Initially I contacted our webhost, and they made some changes, and it worked for about a day. Since then, I have tried the following to get around this without success. This includes:

Double checking the Gmail account and password.
Using a different Gmail account.
Changing from Port 465 and SSL/TLS to Port 587 and STARTTLS.
Turning off 2FA.
Turning back on 2FA and using a Google App Password (including removing the spaces).
Using a different Gmail account with app password.

I considered having out host setup an email for us, but our domain is not with them but with Microsoft 365 that is not possible.

I created a log of the error but did not see anything I understood. I could post it, but it contains our URL and some customer information (they filled into the contact form).

At this point I have run out of ideas and need some help. Please be specific as I am not a developer.

Advertisement
User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31284
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: SMTP Error Sending Email from J5 Server

Post by Per Yngve Berg » Thu Sep 12, 2024 8:19 pm


User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17786
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: SMTP Error Sending Email from J5 Server

Post by toivo » Thu Sep 12, 2024 10:17 pm

Does the button Send Test Mail in the Server tab of the Global Configuration work?

The problem could be caused for example by an issue with the SSL certificate of the web server. Did you use this tutorial to generate the log file: How to debug SMTP mail in Joomla 4?

walterwood44 wrote: Thu Sep 12, 2024 7:35 pmI created a log of the error but did not see anything I understood. I could post it, but it contains our URL and some customer information
Edit the log file using an editor like Notepad++ and use its Find and Replace functions to redact the URL. Post the contents of the log file here for advice.
Toivo Talikka, Global Moderator

Advertisement

Post Reply

Return to “Administration Joomla! 5.x”