Can´t send email

Hello,

I did config the options to send mails, but when I try to send email, this don´t fuction, there are error to send email. This is the error:

Error:SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

The version are:

Versión 7.9.4
Sugar Versión 6.5.24 (Compilación 509)

Can you upgrade to the latest 7.9.12? There have been many email bug-fixes since 7.9.4…

As always, make sure you get a full backup of files and database before upgrading.

Hi,

I did apply the upgrade to the new release, but the problem continuous, and are the same.

Error:SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

the version are:

Version 7.9.12
Sugar Version 6.5.25 (Build 344)

Thank you.

If you can use this SMTP debugging procedure you will get more clues:

https://suitecrm.com/suitecrm/forum/suitecrm-7-0-discussion/16507-mail-stopped-working-error-smtp-connect-failed#55682

I hope it’s not too complicated for you.

Hi,

I did make the changes but the problem are the same, this is the log

23:08:28 2018 [8126][1][FATAL] PHPMailer Send Function override: { FromName: SuiteCRM From: xxxxxx@xxxxxxx.com Host: xxxxxx.xxxxxxx.xxxxxxxxxx.net UserName: xxxxxxxx@xxxxxxxxxx.com }
Wed Feb 7 23:08:28 2018 [8126][1][FATAL] ------------ Entering smtpConnect
Wed Feb 7 23:08:29 2018 [8126][1][FATAL] smtpConnect: { 3: Connection: opening to ssl://smtpout.xxxxxx.xxxxxxxeserver.net:465, timeout=300, options=array ( }
Wed Feb 7 23:08:29 2018 [8126][1][FATAL] smtpConnect: { ) }
Wed Feb 7 23:08:29 2018 [8126][1][FATAL] smtpConnect: { 3: Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtpout.asia.secureserver.net:465 (Connection refused) [/home/xxxxxxxxx/public_html/xxxxxx.xxxxxxxxx/crm/include/phpmailer/class.smtp.php line 298] }
Wed Feb 7 23:08:29 2018 [8126][1][FATAL] smtpConnect: { 1: SMTP ERROR: Failed to connect to server: Connection refused (111) }
Wed Feb 7 23:08:29 2018 [8126][1][FATAL] SugarPHPMailer encountered an error: An outgoing mail server is not configured to send emails. Please configure an outgoing mail server or select an outgoing mail server for the mail account that you are using in Settings >> Mail Account.
Wed Feb 7 23:08:29 2018 [8126][1][FATAL] ------------ Exiting smtpConnect
Wed Feb 7 23:08:29 2018 [8126][1][FATAL] SugarPHPMailer encountered an error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Wed Feb 7 23:08:29 2018 [8126][1][FATAL] smtp send: { 3: Connection: opening to ssl://xxxxxxxx.xxxxxxxxx.xxxxxxxxxxx.net:465, timeout=300, options=array ( }
Wed Feb 7 23:08:29 2018 [8126][1][FATAL] smtp send: { ) }
Wed Feb 7 23:08:29 2018 [8126][1][FATAL] smtp send: { 3: Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://xxxxxxx.xxxxxxx.xxxxxxxxxxxx.net:465 (Connection refused) [/home/xxxxxx/public_html/xxxxxxxx/crm/include/phpmailer/class.smtp.php line 298] }
Wed Feb 7 23:08:29 2018 [8126][1][FATAL] smtp send: { 1: SMTP ERROR: Failed to connect to server: Connection refused (111) }
Wed Feb 7 23:08:29 2018 [8126][1][FATAL] smtp send: { 3: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting }
Wed Feb 7 23:08:29 2018 [8126][1][FATAL] ------------ Exiting SugarMailer send

I did try with others smtp accounts, but the problem are same.

Thank you.

Well, you can see that you’re getting a “Connection refused” from your server. SO check your SSL settings, port numbers, etc. Eventually you might have exceeded bad login attempts and the server has you blacklisted.

Another thing you might check is this: in my code there are some commented-out lines that print some configuration values to the log. Make them active and make sure SuiteCRM is passing the correct values in the “From” server name. Sometimes servers refuse to send mail without a matching “From” name and address.