• Resolved drjohndimi

    (@drjohndimi)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @drjohndimi,

    I apologize for the late response. When we got such error this can have a lot of potential causes. Generally, though, the best next step is to double-check your SMTP configuration and reach out to your site’s hosting provider to find out if the site’s server might be blocking SMTP from working in some way.

    An additional alternative (if either your host is unable to find a cause or if you’d simply like a different option) is to use one of the other mailer options within WP Mail SMTP. Though they all require more setup steps than the “Other SMTP” option, they’re also more secure and tend to not encounter issues like this (especially Gmail, SendGrid and Mailgun). Here are tutorial links for each mailer option:

    Google/Gmail
    SendGrid
    Mailgun

    I hope this helps!

    Hi @drjohndimi – We haven’t heard from you in about a week, so I’m going to go ahead and mark this ticket resolved. If you still have questions, though, please feel welcome to continue the conversation.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘No longer delivering mails’ is closed to new replies.