• Resolved Simon

    (@flaxion)


    Can someone please help me identify what I need to do to fix the plugin?

    Versions:
    WordPress: 4.9.1
    WordPress MS: No
    PHP: 5.6.11
    WP Mail SMTP: 1.1.0

    PHPMailer:
    Mailer: smtp
    ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
    Host: smtp.gmail.com
    Port: 587
    SMTPSecure: tls
    SMTPAutoTLS: bool(true)
    SMTPAuth: bool(true)

    SMTP Debug:
    2017-12-21 12:00:28 Connection: opening to smtp.gmail.com:587, timeout=300, options=array (
    )
    2017-12-21 12:00:28 Connection: opened
    2017-12-21 12:00:28 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP a126sm2219286wma.11 – gsmtp
    2017-12-21 12:00:28 CLIENT -> SERVER: EHLO shop.gomentor.dk
    2017-12-21 12:00:28 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [69.168.235.56]
    250-SIZE 35882577
    250-8BITMIME
    250-STARTTLS
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-CHUNKING
    250 SMTPUTF8
    2017-12-21 12:00:28 CLIENT -> SERVER: STARTTLS
    2017-12-21 12:00:28 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS

    Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in C:\web\shop.gomentor.dk\www\wp-includes\class-smtp.php on line 369

    2017-12-21 12:00:28 SMTP Error: Could not connect to SMTP host.
    2017-12-21 12:00:28 CLIENT -> SERVER: QUIT
    2017-12-21 12:00:28 SERVER -> CLIENT: MIA?h?m?Q3?3?/??5#???[?H?D?hut?;7;?;?K??g??=??w???’?UU?aR???Sb????B??u?????%?%??%C??Bo??!?TmX?lL???c?hi??9???????@?????B?ù?cP^?V?k\????? ?K9?_???^??*z?mG??? ?"^?Ty?????v#Sx??e)?YE???i ′=X;u?e?~?????>a?*%?B'lY?Hb<??X???F?<??S????-;$O?}????Dl?#7?Kc?u??????
    2017-12-21 12:00:28 SMTP ERROR: QUIT command failed: MIA?h?m?Q3?3?/??5#???[?H?D?hut?;7;?;?K??g??=??w???’?UU?aR???Sb????B??u?????%?%??%C??Bo??!?TmX?lL???c?hi??9???????@?????B?ù?cP^?V?k\????? ?K9?_???^??*z?mG??? ?"^?Ty?????v#Sx??e)?YE???i ′=X;u?e?~?????>a?*%?B'lY?Hb<??X???F?<??S????-;$O?}????Dl?#7?Kc?u??????
    2017-12-21 12:00:28 Connection: closed
    2017-12-21 12:00:28 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Slava Abakumov

    (@slaffik)

    @flaxion

    Please update to 1.2.0 and re-run Email Test. But from what I see you are trying to use a secured TLS encryption while communicating with smtp.gmail.com, but your server doesn’t have a valid certificate. It’s misconfigured. The easiest way to fix that – contact your hosting company support to fix that.

    Your last resort may be trying to use this code snippet: https://gist.github.com/slaFFik/c1d7d4249f47da7195fb973109952090

    Put in in a child theme functions.php. It will remove the certificate check, but in that case, Google still may reject the connection.

    Thread Starter Simon

    (@flaxion)

    Thank you for your reply.
    I tried changing the configuration according to the Google Suite guidelines but nothing worked. I also checked that ‘Allow less secure apps’ was turned on (it was).

    I then tried using the Gmail configuration with the API solution instead and now it gives this error instead:

    Versions:
    WordPress: 4.9.1
    WordPress MS: No
    PHP: 5.6.11
    WP Mail SMTP: 1.2.2

    Params:
    Mailer: gmail
    Constants: No
    Client ID/Secret: Yes
    Auth Code: Yes
    Access Token: No

    Server:
    OpenSSL: Yes
    PHP.allow_url_fopen: Yes
    PHP.stream_socket_client(): Yes
    PHP.fsockopen(): Yes
    PHP.curl_version(): Yes
    Apache.mod_security: No

    Debug:
    cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
    cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
    Error while sending via Gmail mailer: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
    cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

    Plugin Author Slava Abakumov

    (@slaffik)

    @flaxion

    You don’t have a proper SSL certificate on your server. Ask your hosting support to fix that. That’s not the same as enabling SSL on your site.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Test mail error’ is closed to new replies.