Title: SMTP Error
Last modified: December 7, 2022

---

# SMTP Error

 *  Resolved [WP Helping Hand](https://wordpress.org/support/users/svenkilcher/)
 * (@svenkilcher)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/smtp-error-28/)
 * Hi,
    I want to set up WP Mail SMTP on a website. Even if all the information 
   is correct, I get the following error message:
 *     ```
       Versions:
       WordPress: 6.1.1
       WordPress MS: No
       PHP: 7.3.33
       WP Mail SMTP: 3.6.1
   
       Params:
       Mailer: smtp
       Constants: No
       ErrorInfo: SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
       error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failedSMTP server error: QUIT command failed
       Host: mail.test.de
       Port: 587
       SMTPSecure: tls
       SMTPAutoTLS: bool(true)
       SMTPAuth: bool(true)
   
       Server:
       OpenSSL: OpenSSL 1.1.1k  FIPS 25 Mar 2021
   
       Debug:
       E-Mail-Quelle WP Mail SMTP
       Mailer: Benutzerdefinierter SMTP-Server
       SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
       error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failedSMTP server error: QUIT command failed
   
       SMTP Debug:
   
       2022-12-07 16:15:12 Connection: opening to mail.test.de:25, timeout=300, options=array()
   
       2022-12-07 16:15:12 Connection: opened
   
       2022-12-07 16:15:12 SERVER -> CLIENT: 220 SRVEX01.test.de Microsoft ESMTP MAIL Service ready at Wed, 7 Dec 2022 17:15:12 +0100
   
       2022-12-07 16:15:12 CLIENT -> SERVER: EHLO www.test.de
   
       2022-12-07 16:15:12 SERVER -> CLIENT: 250-SRVEX01.test.de Hello [92.204.55.209]250-SIZE 104857600250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-X-ANONYMOUSTLS250-AUTH NTLM250-X-EXPS GSSAPI NTLM250-8BITMIME250-BINARYMIME250-CHUNKING250-SMTPUTF8250 XRDST
   
       2022-12-07 16:15:12 CLIENT -> SERVER: STARTTLS
   
       2022-12-07 16:15:12 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
   
       2022-12-07 16:15:12 Connection failed. Error #2: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed [/kunden/502316_31177/webseiten/wp-includes/PHPMailer/SMTP.php line 468]
   
       SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
   
       2022-12-07 16:15:12 CLIENT -> SERVER: QUIT
   
       2022-12-07 16:15:12 SERVER -> CLIENT: 
   
       2022-12-07 16:15:12 SMTP ERROR: QUIT command failed: 
   
       2022-12-07 16:15:12 Connection: closed
   
       SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
       ```
   
 * I have already tried different ports for TSL. Another developer said that the
   CA list must be renewed in wordpress. Is that possible at all? I have never heard
   anything about it.

Viewing 1 replies (of 1 total)

 *  Plugin Support [Darshana](https://wordpress.org/support/users/darshanaw/)
 * (@darshanaw)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/smtp-error-28/#post-16276610)
 * Hi [@svenkilcher](https://wordpress.org/support/users/svenkilcher/),
 * Thanks for reaching out! Please kindly know, that this error message is server-
   related. It indicates certificate verification failure on your server. Please
   [check this](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#certificate-verification-failure)
   troubleshooting guide for more information.
 * When you get a chance, please contact your hosting support with the full error
   log, and they should be able to assist you further.
 * I hope this helps. Thanks!

Viewing 1 replies (of 1 total)

The topic ‘SMTP 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Darshana](https://wordpress.org/support/users/darshanaw/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/smtp-error-28/#post-16276610)
 * Status: resolved