Title: Testmail not working
Last modified: June 3, 2020

---

# Testmail not working

 *  Resolved [vocaris2000](https://wordpress.org/support/users/vocaris2000/)
 * (@vocaris2000)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/testmail-not-working/)
 * Hello, everyone.
 * first of all the scenario: There is a web provider where my customer has the 
   domain. There we have DNS entries that redirect the user for ‘www’ to another
   server where the WordPress installation is running. Everything works fine, except
   for the mail delivery. No mails are delivered with the domain of the website (
   this is also understandable, because they are not handled by the server on which
   WordPress is running).
    So the solution should be WP Mail SMTP. After a short
   configuration of the plugin with an external SMTP server everything should work.
   Unfortunately I always get the following log:
 *     ```
       Versions:
       WordPress: 5.0.4
       WordPress MS: No
       PHP: 7.2.31
       WP Mail SMTP: 2.0.1
   
       Params:
       Mailer: smtp
       Constants: No
       ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
       Host: mail.hinterhofkonzert.de
       Port: 465
       SMTPSecure: ssl
       SMTPAutoTLS: bool(true)
       SMTPAuth: bool(true)
   
       Server:
       OpenSSL: OpenSSL 1.1.1g 21 Apr 2020
       SMTP Debug:
       2020-06-03 13:58:24 Connection: opening to ssl://mail.hinterhofkonzert.de:465, timeout=300, options=array (
       )
       2020-06-03 13:58:25 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): unable to connect to ssl://mail.hinterhofkonzert.de:465 (Connection refused)
       2020-06-03 13:58:25 SMTP ERROR: Failed to connect to server: Connection refused (111)
       2020-06-03 13:58:25 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
       ```
   
 * I have tried, without security, with SSL, with TLS and I have tried other SMTP-
   Servers. But I allways get the same error log. Please can anybody help me?
 * Thanks a lot
    Manfred
    -  This topic was modified 5 years, 11 months ago by [vocaris2000](https://wordpress.org/support/users/vocaris2000/).

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

 *  [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/testmail-not-working/#post-12936456)
 * Hi [@vocaris2000](https://wordpress.org/support/users/vocaris2000/),
 * Thanks for the error details. It seems the plugin is not able to connect to the
   SMTP server you’ve specified. Please make sure the SMTP host and other SMTP settings
   are correct, and contact your hosting provider to know if anything like firewall
   is blocking the outbound SMTP connection.
 * I hope this helps!
 *  Thread Starter [vocaris2000](https://wordpress.org/support/users/vocaris2000/)
 * (@vocaris2000)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/testmail-not-working/#post-12936817)
 * Hi Sanjeev,
 * All data was correct. After I checked the server configuration I saw the setting
   SMTP blocking. The was activated and the problem. Perhaps you should add a tip
   at the error message because this parameter was not easy to find.
 * Thanks a lot
    Manfred
 *  [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/testmail-not-working/#post-12937074)
 * I’m glad you sorted it out. That’s what the error log indicated about the problem
   unfortunately it does not provide why exactly the connection was refused.
 * Have a good one!

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

The topic ‘Testmail not working’ 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

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

 * 3 replies
 * 2 participants
 * Last reply from: [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/testmail-not-working/#post-12937074)
 * Status: resolved