After updating Zen Cart v154 to 155a, emails no longer works using smtpauth E-Mail Transport Method and produce error message like this in admin . . .
ERROR: Failed sending email to: "xxx" with subject: "xxx" SMTP connect() failed.
NB: smtpauth E-Mail Transport Method works with v154 and php E-Mail Transport Method works with v155a
Below is a Zen Cart generated debug log myDEBUG-adm-xxxx-yyyy.log
Code:
[29-Jun-2016 23:48:32] Request URI: /shop/myadmin/orders.php?selected_box=customers&status=2&page=1&oID=10786&action=update_order, IP address: https://mydomain.com
#1 stream_socket_enable_crypto() called at [/xxx/yyy/public_html/shop/includes/classes/vendors/PHPMailer/class.smtp.php:344]
#2 SMTP->startTLS() called at [/xxx/yyy/public_html/mycatalog/includes/classes/vendors/PHPMailer/class.phpmailer.php:1595]
#3 PHPMailer->smtpConnect() called at [/xxx/yyy/public_html/mycatalog/includes/classes/vendors/PHPMailer/class.phpmailer.php:1463]
#4 PHPMailer->smtpSend() called at [/xxx/yyy/public_html/mycatalog/includes/classes/vendors/PHPMailer/class.phpmailer.php:1300]
#5 PHPMailer->postSend() called at [/xxx/yyy/public_html/mycatalog/includes/classes/vendors/PHPMailer/class.phpmailer.php:1180]
#6 PHPMailer->send() called at [/xxx/yyy/public_html/mycatalog/includes/functions/functions_email.php:347]
#7 zen_mail() called at [/xxx/yyy/public_html/mycatalog/myadmin/orders.php:157]
[29-Jun-2016 23:48:32] PHP Warning: stream_socket_enable_crypto(): Peer certificate CN=`*.bluehost.com' did not match expected CN=`mail.mydomain.com' in /xxx/yyy/public_html/mycatalog/includes/classes/vendors/PHPMailer/class.smtp.php on line 344
[29-Jun-2016 23:48:32] Request URI: /mycatalog/myadmin/orders.php?selected_box=customers&status=2&page=1&oID=10786&action=update_order, IP address: xx.xx.xx.xx
#1 trigger_error() called at [/xxx/yyy/public_html/mycatalog/includes/functions/functions_email.php:375]
#2 zen_mail() called at [/xxx/yyy/public_html/mycatalog/myadmin/orders.php:157]
[29-Jun-2016 23:48:32] PHP Notice: Email Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting<br /> in /xxx/yyy/public_html/mycatalog/includes/functions/functions_email.php on line 375
[29-Jun-2016 23:48:34] Request URI: /mycatalog/myadmin/orders.php?selected_box=customers&status=2&page=1&oID=10786&action=update_order, IP address: https://mydomain.com
#1 stream_socket_enable_crypto() called at [/xxx/yyy/public_html/mycatalog/includes/classes/vendors/PHPMailer/class.smtp.php:344]
#2 SMTP->startTLS() called at [/xxx/yyy/public_html/mycatalog/includes/classes/vendors/PHPMailer/class.phpmailer.php:1595]
#3 PHPMailer->smtpConnect() called at [/xxx/yyy/public_html/mycatalog/includes/classes/vendors/PHPMailer/class.phpmailer.php:1463]
#4 PHPMailer->smtpSend() called at [/xxx/yyy/public_html/mycatalog/includes/classes/vendors/PHPMailer/class.phpmailer.php:1300]
#5 PHPMailer->postSend() called at [/xxx/yyy/public_html/mycatalog/includes/classes/vendors/PHPMailer/class.phpmailer.php:1180]
#6 PHPMailer->send() called at [/xxx/yyy/public_html/mycatalog/includes/functions/functions_email.php:347]
#7 zen_mail() called at [/xxx/yyy/public_html/mycatalog/myadmin/orders.php:171]
[29-Jun-2016 23:48:34] PHP Warning: stream_socket_enable_crypto(): Peer certificate CN=`*.bluehost.com' did not match expected CN=`mail.mydomain.com' in /xxx/yyy/public_html/mycatalog/includes/classes/vendors/PHPMailer/class.smtp.php on line 344
[29-Jun-2016 23:48:34] Request URI: /mycatalog/myadmin/orders.php?selected_box=customers&status=2&page=1&oID=10786&action=update_order, IP address: xx.xx.xx.xx
#1 trigger_error() called at [/xxx/yyy/public_html/mycatalog/includes/functions/functions_email.php:375]
#2 zen_mail() called at [/xxx/yyy/public_html/mycatalog/myadmin/orders.php:171]
[29-Jun-2016 23:48:34] PHP Notice: Email Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting<br /> in /xxx/yyy/public_html/mycatalog/includes/functions/functions_email.php on line 375
Vitals:
Update done following official upgrade procedure uploading via FTP and running zc_install.
Linux Server
PHP Version: 5.6.17
Hosting: Bluehost shared server
Bookmarks