Hi,

We have recently upgraded SMTP module and we are coming across strange issue. Sometimes emails are delivered and sometimes they fail and following error is logged in watchdog. We have checked Amazon SES and find no rejected emails or any other issues logged. This site has been running for last 2-3 years and never came across this issue before and there have been no server or SES config changes recently. Our website is running on Amazon cloud with loadbalancer.

phpmailerException: SMTP Error: Could not connect to SMTP host. in PHPMailer->SmtpConnect() (line 845 of /opt/media/www/sitename/sites/all/modules/smtp/smtp.phpmailer.inc).

If I enable 'Queue undelivered emails' then all these rejected emails are successfully delivered when cron is run.

Can anyone please point me to the right direction as this has become a big issue for us.

Many Thanks

Comments

saads90 created an issue. See original summary.

bkosborne’s picture

Status: Active » Closed (duplicate)
Related issues: +#2839456: phpmailerException: SMTP Error: Could not connect to SMTP host

There's a couple other issues related to this error message. Closing to consolidate conversation.