• thecarew

    (@thecarew)


    Hi I have installed the WP Mail SMTP plugin but get the following error when I try to send a test email. Any help appreciated! Thanks, Carol

    There was a problem while sending a test email. Related debugging output is shown below:

    Versions:
    WordPress: 4.9.6
    WordPress MS: No
    PHP: 5.6.35
    WP Mail SMTP: 1.2.5

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

    Server:
    OpenSSL: Yes
    Apache.mod_security: No
    SMTP Debug:
    2018-06-07 09:40:23 Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array (
    )
    2018-06-07 09:40:25 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Network is unreachable)
    2018-06-07 09:40:25 SMTP ERROR: Failed to connect to server: Network is unreachable (101)
    2018-06-07 09:40:25 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Viewing 4 replies - 1 through 4 (of 4 total)
  • vivrathore

    (@vivrathore)

    It is beacause plugin is having problem with connecting to your gmail account.

    Have you turn on the option of less secure app on in your google account ?

    Visit this link : https://myaccount.google.com/lesssecureapps?pli=1
    and turn on the less secure app on.

    Also try with port 25.

    Thread Starter thecarew

    (@thecarew)

    Thanks @vivrathore – tried that but still not working.

    Versions:
    WordPress: 4.9.6
    WordPress MS: No
    PHP: 5.6.35
    WP Mail SMTP: 1.2.5

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

    Server:
    OpenSSL: Yes
    Apache.mod_security: No
    SMTP Debug:
    2018-06-07 11:17:48 Connection: opening to ssl://smtp.gmail.com:25, timeout=300, options=array (
    )
    2018-06-07 11:17:48 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
    error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
    2018-06-07 11:17:48 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): Failed to enable crypto
    2018-06-07 11:17:48 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): unable to connect to ssl://smtp.gmail.com:25 (Unknown error)
    2018-06-07 11:17:48 SMTP ERROR: Failed to connect to server: (0)
    2018-06-07 11:17:48 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    vivrathore

    (@vivrathore)

    Type of encryption should not be SSL if you are using port 25, sorry I forgot to mention.

    Also, if you have turned on the Less secure app, then you can try with port 465 again, may be first time when you tried, Less secure app option was turned off.

    So, If you are using port 465, Type of encryption must be SSL, and if port is 25, then Type of encryption should be set to none.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I recommend asking at https://ww.wp.xz.cn/support/plugin/wp-mail-smtp#new-post so the plugin’s / theme’s developers and support community can help you with this.

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

The topic ‘WP Mail SMTP Email – Test Email Problem’ is closed to new replies.