• Resolved Dora Crow

    (@dora-crow)


    Hello,

    I am testing this on a staging site, which is not public, so I am not sure if you will be able to help unless I test this on the visible site. The visible site is https://www.ebdesign.com, but the plugin is not on it yet.

    Perhaps you can assist me without access to the staging site? (It is private at https://www.staging2.ebdesign.com/)

    First test: Selected SSL and port 465
    Second test: No SSL selected and used port 587

    Result for both below:

    First Test –

    Versions:
    WordPress: 4.9.2
    WordPress MS: No
    PHP: 7.0.27
    WP Mail SMTP: 1.2.2

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

    Server:
    OpenSSL: Yes
    SMTP Debug:
    2018-01-23 07:43:46 Connection: opening to ssl://smtp.rawbw.com:465, timeout=300, options=array (
    )
    2018-01-23 07:43:47 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
    2018-01-23 07:43:47 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): Failed to enable crypto
    2018-01-23 07:43:47 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): unable to connect to ssl://smtp.rawbw.com:465 (Unknown error)
    2018-01-23 07:43:47 SMTP ERROR: Failed to connect to server: (0)
    2018-01-23 07:43:47 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    ========= Below is error without SSL and using port 587 ========================

    Second Test –

    Versions:
    WordPress: 4.9.2
    WordPress MS: No
    PHP: 7.0.27
    WP Mail SMTP: 1.2.2

    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    Host: smtp.rawbw.com
    Port: 587
    SMTPSecure: string(0) “”
    SMTPAutoTLS: bool(false)
    SMTPAuth: bool(true)

    Server:
    OpenSSL: Yes
    SMTP Debug:
    2018-01-23 17:40:05 Connection: opening to smtp.rawbw.com:587, timeout=300, options=array (
    )
    2018-01-23 17:40:20 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): unable to connect to smtp.rawbw.com:587 (Connection timed out)
    2018-01-23 17:40:20 SMTP ERROR: Failed to connect to server: Connection timed out (110)
    2018-01-23 17:40:20 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    ==================================

    Thank you!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Dora Crow

    (@dora-crow)

    Today I installed the plugin on the public site. I am still receiving the same kinds of errors.

    I tested with SSL selected and then did a 2nd test without SSL selected.

    Note: I do not know what kind of page link you need for this. I am doing email tests via the plugin.

    ================ Test with SSL selected ===================
    Versions:
    WordPress: 4.9.2
    WordPress MS: No
    PHP: 7.0.27
    WP Mail SMTP: 1.2.3

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

    Server:
    OpenSSL: Yes
    SMTP Debug:
    2018-01-24 17:08:19 Connection: opening to ssl://smtp.rawbw.com:465, timeout=300, options=array (
    )
    2018-01-24 17:08:20 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
    2018-01-24 17:08:20 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): Failed to enable crypto
    2018-01-24 17:08:20 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): unable to connect to ssl://smtp.rawbw.com:465 (Unknown error)
    2018-01-24 17:08:20 SMTP ERROR: Failed to connect to server: (0)
    2018-01-24 17:08:20 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    ====================== TEST without SSL selected ================================
    Versions:
    WordPress: 4.9.2
    WordPress MS: No
    PHP: 7.0.27
    WP Mail SMTP: 1.2.3

    Params:
    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    Host: smtp.rawbw.com
    Port: 587
    SMTPSecure: string(0) “”
    SMTPAutoTLS: bool(false)
    SMTPAuth: bool(true)

    Server:
    OpenSSL: Yes
    SMTP Debug:
    2018-01-24 17:13:06 Connection: opening to smtp.rawbw.com:587, timeout=300, options=array (
    )
    2018-01-24 17:13:21 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): unable to connect to smtp.rawbw.com:587 (Connection timed out)
    2018-01-24 17:13:21 SMTP ERROR: Failed to connect to server: Connection timed out (110)
    2018-01-24 17:13:21 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    Plugin Author Slava Abakumov

    (@slaffik)

    First thing: you should use SSL encryption with port 465 OR TLS encryption with port 587.

    Incorrect values like port 587 and no encryption won’t work at all.

    Next:
    It seems you have a misconfigured server certificate (because of the certificate verify failed error). That’s due to the changes in PHP 5.6 and its openssl procession. You need to contact your hosting support with that error (when you used SSL and port 465). This link may help them.
    Meanwhile, this code snippet may help you (or not, it depends on many factors).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Test Email Failed’ is closed to new replies.