It seems you were sending from a local site, using something like WAMP.
Anyway, in WP Mail SMTP v1.1.0 we improved the way such errors are processed, and at least they are not blocking the page load now.
Related to this: https://github.com/awesomemotive/wp-mail-smtp/issues/76
Don’t use wamp.It was working before any recent upgrades.
This is the recent error:
Versions:
WordPress: 4.9.1
WordPress MS: No
PHP: 5.6.32
WP Mail SMTP: 1.1.0
PHPMailer:
Mailer: smtp
ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Host: smtp.gmail.com
Port: 465
SMTPSecure: ssl
SMTPAutoTLS: bool(true)
SMTPAuth: bool(true)
SMTP Debug:
2017-12-20 05:07:12 Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array (
)
2017-12-20 05:07:12 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
2017-12-20 05:07:12 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): Failed to enable crypto
2017-12-20 05:07:12 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Unknown error)
2017-12-20 05:07:12 SMTP ERROR: Failed to connect to server: (0)
2017-12-20 05:07:12 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
I had removed your app, and installed WP Mail SMTP Plugin by Mail Bank So i decided to install your app again in the hope to resolve the issue. The ironic thing is both apps running side by side your app works and sends out test email.Immediately that i deactivate the other email app the error pops up as above.
Please try using the new option “Auto TLS” and turn it off. From the logs, I see it’s on, and that can cause an issue on certain server configurations. Make sure that you don’t have a code snippet somewhere that modifies this value SMTPAutoTLS
and turns it on.
If that doesn’t help – use this snippet https://gist.github.com/slaFFik/c1d7d4249f47da7195fb973109952090 – it will disable SSL verification, that is failed while sending an email. But it’s better to ask your host to properly configure it (you can copy them just the content of SMTP Debug
output).
Put it into the functions.php
of your (child-)theme, or in a separate functional plugin, or use this tutorial.