• Resolved rayroh

    (@rayroh)


    I keep getting this error although my configuration is all correct.
    I realized that my email hosting company which is godaddy and they are the one who’s blocking from sending email from WP mail SMTP plugin, so I called them and ask if that is true but they said “no we don’t block any sending SMTP port” and I have no idea why this is happening.

    Can you please help?
    below is the error log

    Versions:
    WordPress: 5.3.2
    WordPress MS: No
    PHP: 7.2.27
    WP Mail SMTP: 1.8.1

    Params:
    Mailer: smtp
    Constants: Yes
    ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    Host: smtpout.secureserver.net
    Port: 465
    SMTPSecure: ssl
    SMTPAutoTLS: bool(true)
    SMTPAuth: bool(true)

    Server:
    OpenSSL: OpenSSL 1.1.1d 10 Sep 2019
    SMTP Debug:
    2020-02-27 08:00:42 Connection: opening to ssl://smtpout.secureserver.net:465, timeout=300, options=array ()

    2020-02-27 08:00:42 Connection failed. Error #2: stream_socket_client(): Peer certificate CN=srv82.alidropship.com' did not match expected CN=smtpout.secureserver.net’ [/home/uali3873/public_html/gohoney.net/wp-includes/class-smtp.php line 298]

    2020-02-27 08:00:42 Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [/home/uali3873/public_html/gohoney.net/wp-includes/class-smtp.php line 298]

    2020-02-27 08:00:42 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtpout.secureserver.net:465 (Unknown error) [/home/uali3873/public_html/gohoney.net/wp-includes/class-smtp.php line 298]

    2020-02-27 08:00:42 SMTP ERROR: Failed to connect to server: (0)

    SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi @rayroh,

    This looks like the issue of the SSL certificate not accepted. You should contact your hosting provider to fix your mail server certificate or disable certificate verification. You should not do this unless you have to – it’s compromising your security. In case it helps, here’s a tutorial on where and how to add custom codes like that.

    I hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘SMTP Error: Could not connect to SMTP host’ is closed to new replies.