Replies: 0
I use Yandex SMTP for my mail settings with WP MAIL SMTP and things have been gone well. Infact, your plugin would have been my first draft pick if I was setting up a team of plugins. Unfortunately, I noticed recently I didn’t receive a couple of mails and was surprised. I sent a TEST EMAIL but it failed and received this error message:
There was a problem while sending the test email.
Could not connect to the SMTP host.
This means your web server was unable to connect to smtp.yandex.com.
Typically this error is returned for one of the following reasons:
-SMTP settings are incorrect (wrong port, security setting, incorrect host).
-Your web server is blocking the connection.
-Your SMTP host is rejecting the connection.
I am not sure why the error exists IF everything was working before and I didn’t tweak the settings.
Below is the full error log (please how do I go about resolving the issue, thank you).
Versions:
WordPress: 5.2.2
WordPress MS: No
PHP: 7.2.20
WP Mail SMTP: 1.5.1
Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Host: smtp.yandex.com
Port: 465
SMTPSecure: ssl
SMTPAutoTLS: bool(true)
SMTPAuth: bool(true)
Server:
OpenSSL: OpenSSL 1.0.2k 26 Jan 2017
Apache.mod_security: No
SMTP Debug:
2019-07-16 13:16:13 Connection: opening to ssl://smtp.yandex.com:465, timeout=300, options=array (
)
2019-07-16 13:16:17 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): unable to connect to ssl://smtp.yandex.com:465 (Invalid argument)
2019-07-16 13:16:17 SMTP ERROR: Failed to connect to server: Invalid argument (22)
2019-07-16 13:16:17 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting