Title: Test mail error
Last modified: December 21, 2017

---

# Test mail error

 *  Resolved [Simon](https://wordpress.org/support/users/flaxion/)
 * (@flaxion)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/test-mail-error/)
 * 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](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](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting)

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

 *  Plugin Author [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/test-mail-error/#post-9803445)
 * [@flaxion](https://wordpress.org/support/users/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](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](https://wordpress.org/support/users/flaxion/)
 * (@flaxion)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/test-mail-error/#post-9817311)
 * 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 [http://curl.haxx.se/libcurl/c/libcurl-errors.html](http://curl.haxx.se/libcurl/c/libcurl-errors.html))
   cURL error 60: SSL certificate problem: unable to get local issuer certificate(
   see [http://curl.haxx.se/libcurl/c/libcurl-errors.html](http://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 [http://curl.haxx.se/libcurl/c/libcurl-errors.html](http://curl.haxx.se/libcurl/c/libcurl-errors.html))
   cURL error 60: SSL certificate problem: unable to get local issuer certificate(
   see [http://curl.haxx.se/libcurl/c/libcurl-errors.html](http://curl.haxx.se/libcurl/c/libcurl-errors.html))
 *  Plugin Author [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/test-mail-error/#post-9819630)
 * [@flaxion](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/test-mail-error/#post-9819630)
 * Status: resolved