Title: E-mail error message
Last modified: January 14, 2019

---

# E-mail error message

 *  Resolved [contraeu](https://wordpress.org/support/users/contraeu/)
 * (@contraeu)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/e-mail-error-message/)
 * Hi!
    Im trying to set my e-mail configs to use on Contact form 7, but it keeps
   sending me error messages on all my tests. Can someone help me to solve this 
   problem?
 * I’m using the Other SMTP mailer.
 * Versions:
    WordPress: 5.0.3 WordPress MS: No PHP: 5.6.39 WP Mail SMTP: 1.4.1
 * Params:
    Mailer: smtp Constants: No ErrorInfo: SMTP connect() failed. [https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting)
   Host: smtp.paranapuan.com.br Port: 587 SMTPSecure: tls SMTPAutoTLS: bool(true)
   SMTPAuth: bool(true)
 * Server:
    OpenSSL: OpenSSL 1.0.2q 20 Nov 2018 SMTP Debug: 2019-01-14 15:58:01 
   Connection: opening to smtp.paranapuan.com.br:587, timeout=300, options=array()
   2019-01-14 15:58:01 Connection: opened 2019-01-14 15:58:01 SERVER -> CLIENT: 
   220 smtp-11.smtp.mandic.prv ESMTP 2019-01-14 15:58:01 CLIENT -> SERVER: EHLO 
   paranapuan.com.br 2019-01-14 15:58:01 SERVER -> CLIENT: 250-smtp-11.smtp.mandic.
   prv 250-PIPELINING 250-SIZE 52428800 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH 
   PLAIN LOGIN 250-AUTH=PLAIN LOGIN 250-ENHANCEDSTATUSCODES 250 8BITMIME 2019-01-
   14 15:58:01 CLIENT -> SERVER: STARTTLS 2019-01-14 15:58:01 SERVER -> CLIENT: 
   220 2.0.0 Ready to start TLS
 * Warning: stream_socket_enable_crypto(): Peer certificate CN=`*.idc2.mandic.com.
   br' did not match expected CN=`smtp.paranapuan.com.br’ in C:\Inetpub\vhosts\paranapuan.
   com.br\httpdocs\wp-includes\class-smtp.php on line 369
 * 2019-01-14 15:58:04 SMTP Error: Could not connect to SMTP host.
    2019-01-14 15:
   58:04 CLIENT -> SERVER: QUIT 2019-01-14 15:58:04 SERVER -> CLIENT: 2019-01-14
   15:58:04 SMTP ERROR: QUIT command failed: 2019-01-14 15:58:04 Connection: closed
   2019-01-14 15:58:04 SMTP connect() failed. [https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fe-mail-error-message%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/e-mail-error-message/#post-11096590)
 * Hi,
 * Your server is trying to connect to `smtp.paranapuan.com.br`, and check its certificate,
   but instead it gets the certificate for a `*.idc2.mandic.com.br` domain. That
   means your local install is hijacking all SMTP requests. You should try to reconfigure
   it with a correct SMTP host or setup the local server correctly.

Viewing 1 replies (of 1 total)

The topic ‘E-mail error message’ 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/)

## Tags

 * [email](https://wordpress.org/support/topic-tag/email/)
 * [form](https://wordpress.org/support/topic-tag/form/)

 * 1 reply
 * 2 participants
 * Last reply from: [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/e-mail-error-message/#post-11096590)
 * Status: resolved