SMTP connect() failed.

Need help with the Administration of your Joomla! 3.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.
Post Reply
ismaelhaider
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Wed Aug 26, 2009 2:45 pm

SMTP connect() failed.

Post by ismaelhaider » Tue Aug 29, 2017 7:49 pm

Hello Folks,

Suddenly I am getting below in my front end site, but when I am sending test email from backend its successfully sent and also recieved. I am using gmail service for emails, I dont know why SMTP coonect failed is showing on frontend,Can anyone help me out

SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting

User avatar
toivo
Joomla! Exemplar
Joomla! Exemplar
Posts: 9927
Joined: Thu Feb 15, 2007 5:48 am
Location: Oxford, UK
Contact:

Re: SMTP connect() failed.

Post by toivo » Wed Aug 30, 2017 7:27 am

Which particular function gives the error message about failed connection the front end?

You can get a detailed log of the dialogue between PHPMailer and the mail server by configuring the plugin 'System - Debug' and turning on the Debug option. The result is a log file, showing all the error codes and messages received from the server, which will explain why the connection failed.

First configure the plugin 'System - Debug' with the following settings:
  • Allowed Groups: Super Users (or a different but unique user group for testing from the front end)
    Log Priorities: All
    Log Categories: mail
    Log Almost Everything
Turn on the debug option in Global Configuration. After you have done your test, you will find the full details of the SMTP connection from the log file administrator/logs/everything.php.
Toivo Talikka, Global Moderator
my first programs were assembled and run in 16KB :)
troubleshooting smtp and other articles https://talikka.com/joomla

webd250
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Jan 19, 2018 6:23 pm

Re: SMTP connect() failed.

Post by webd250 » Fri Jan 19, 2018 9:00 pm

This is not working with gmail or yahoo mail. I entered information for my local cable provider, CableOne. I was able to send one test message, then it stopped working. I have read several threads along this line, and they all end with nothing resolved. I've tried the fixes in 3 different forums and none of them allows me to send email.

Is there actually a fix? Can ANYONE send email from Joomla? A coworker says his site doesn't send email either

User avatar
toivo
Joomla! Exemplar
Joomla! Exemplar
Posts: 9927
Joined: Thu Feb 15, 2007 5:48 am
Location: Oxford, UK
Contact:

Re: SMTP connect() failed.

Post by toivo » Sat Jan 20, 2018 5:43 pm

Gmail works all right as long as you follow the instructions in the tutorial how to set up Gmail as your SMTP server: https://docs.joomla.org/How_do_I_use_Gm ... _server%3F
Toivo Talikka, Global Moderator
my first programs were assembled and run in 16KB :)
troubleshooting smtp and other articles https://talikka.com/joomla


Post Reply

Return to “Administration Joomla! 3.x”