• Resolved Farrukh

    (@faarukh)


    Hi

    I have configured WP Mail SMTP properly with the credential but I got this error: https://ibb.co/0B1mFLr

    I already contacted to my hosting provider and there is no issue from them. They told me to contact you guys for this issue.

    Regards
    Farrukh

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @faarukh,

    When you get a chance, could you please share a full error log recorded when you send a test email from WP Mail SMTP > Email Test? Here’s a screenshot for the option to get a full error log. This will give us an idea of what might be going on.

    Thanks!

    Thread Starter Farrukh

    (@faarukh)

    Where I have to send the error log details?

    Is there any privacy issue?

    Hi @faarukh,

    Please share the full error log here. The error log does not contain personal information.

    Thanks!

    Thread Starter Farrukh

    (@faarukh)

    Versions:
    WordPress: 5.5
    WordPress MS: No
    PHP: 7.3.20
    WP Mail SMTP: 2.3.1

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

    Server:
    OpenSSL: OpenSSL 1.1.1d FIPS 10 Sep 2019

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

    SMTP Debug:
    2020-08-25 11:19:38 Connection: opening to ssl://onlinephonez.com:465, timeout=10, options=array()

    2020-08-25 11:19:38 Connection failed. Error #2: stream_socket_client(): Peer certificate CN=gsgp1023.siteground.asia' did not match expected CN=onlinephonez.com’ [/home/customer/www/onlinephonez.com/public_html/wp-includes/PHPMailer/SMTP.php line 344]

    2020-08-25 11:19:38 Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [/home/customer/www/onlinephonez.com/public_html/wp-includes/PHPMailer/SMTP.php line 344]

    2020-08-25 11:19:38 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://onlinephonez.com:465 (Unknown error) [/home/customer/www/onlinephonez.com/public_html/wp-includes/PHPMailer/SMTP.php line 344]

    2020-08-25 11:19:38 SMTP ERROR: Failed to connect to server: (0)

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

    Hi @faarukh,

    Thanks for the error details and I apologize for the late response. The error message indicates the issue with the SSL certificate your server is presenting. Please contact your hosting provider and fix your certificate. You may disable the SSL verification using custom code. but it’s compromising your security. In case it helps, here’s tutorial on where and how to add custom codes like that.

    I hope this helps!

    Thread Starter Farrukh

    (@faarukh)

    Ok I will contact them.

    Thanks for your help

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Could not connect to the SMTP host.’ is closed to new replies.