Title: Problem with mail
Last modified: September 7, 2016

---

# Problem with mail

 *  Resolved [clintcunha](https://wordpress.org/support/users/clintcunha/)
 * (@clintcunha)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/problem-with-mail/)
 * Good day,
 * I installed EME on my localhost, edited the form and seccessfully submitted the
   form and mails were sent to my local mail test tool.
 * But when I try in a live site the mails are not being sent.
    I have set up smtp
   settings according to my host and all is correct. Enable RSVP notifications is
   set to yes.
 * I then turned on debug and tried to send a mail from Send Mail option and got
   this notice:
 * **2016-09-07 10:13:36 SERVER -> CLIENT: 220 www449.jnb1.host-h.net ESMTP Exim
   4.80 Wed, 07 Sep 2016 12:13:36 +0200 2016-09-07 10:13:36 CLIENT -> SERVER: EHLO
   dirtjunkie.co.za 2016-09-07 10:13:36 SERVER -> CLIENT: 250-www449.jnb1.host-h.
   net Hello dirtjnwnxh at www449.jnb1.host-h.net [41.203.16.63] 250-SIZE 31457280
   250-8BITMIME 250-ETRN 250-PIPELINING 250-AUTH LOGIN PLAIN 250-STARTTLS 250 HELP
   2016-09-07 10:13:36 CLIENT -> SERVER: STARTTLS 2016-09-07 10:13:36 SERVER -> 
   CLIENT: 220 TLS go ahead 2016-09-07 10:13:36 SMTP Error: Could not connect to
   SMTP host. 2016-09-07 10:13:36 CLIENT -> SERVER: QUIT 2016-09-07 10:13:36 SERVER-
   > CLIENT: 221 www449.jnb1.host-h.net closing connection 2016-09-07 10:13:36 SMTP
   connect() failed. [https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting)**
 * Any ideas where it has gone wrong between localhost and live server?
 * Thank you in advance for your help

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

 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/problem-with-mail/#post-8154522)
 * Well, since the client only got a server disconnected, you should verify your
   settings.
    What are your smtp settings? Did you put “tls://my.mail.server” ? 
   The “tls://” will force tls then, if the server supports it. Also maybe smtp 
   auth is needed?
 *  Thread Starter [clintcunha](https://wordpress.org/support/users/clintcunha/)
 * (@clintcunha)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/problem-with-mail/#post-8154546)
 * Thank you for prompt response.
 * SMTP settings are:
    smtp host: smtp.dirtjunkie.co.za port: 587 authentication:
   yes username and password correct
 * This what what I should use according to host.
    Should I make the smtp host tls://
   smtp.dirtjunkie.co.za
 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/problem-with-mail/#post-8154584)
 * 587 ? That means you need ssl … so change your smtp host setting to
 * ssl://smtp.dirtjunkie.co.za
 * And try again
 *  Thread Starter [clintcunha](https://wordpress.org/support/users/clintcunha/)
 * (@clintcunha)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/problem-with-mail/#post-8154595)
 * Gave that a try. It then gives me this which happens instantly:
 * **2016-09-07 11:50:21 SMTP ERROR: Failed to connect to server: (0) 2016-09-07
   11:50:21 SMTP connect() failed. [https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting)**
 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/problem-with-mail/#post-8154608)
 * Well, then it is not ssl 🙂 Try tls then …
 *  Thread Starter [clintcunha](https://wordpress.org/support/users/clintcunha/)
 * (@clintcunha)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/problem-with-mail/#post-8154638)
 * Tried both of them but not working 🙂
 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/problem-with-mail/#post-8154869)
 * Then try another port:
    ssl + 465 typically works or nothing and port 25 or tls
   and port 25
 *  Thread Starter [clintcunha](https://wordpress.org/support/users/clintcunha/)
 * (@clintcunha)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/problem-with-mail/#post-8154942)
 * I have tried those options but no luck. I am in contact with my host to try resolve
   the matter and see what options they can give me.
 * Once I have it working I will post here so it can help others with the same issue.
 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/problem-with-mail/#post-8155095)
 * If all else fails and mail works from within wordpress itself, use “wp_mail” 
   as method, not smtp.
    It is also very well possible that you need to use “localhost”
   on your hosting server as mailserver.
 *  Thread Starter [clintcunha](https://wordpress.org/support/users/clintcunha/)
 * (@clintcunha)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/problem-with-mail/#post-8155343)
 * I changed to wp-mail as method and that is working fine so I will leave it at
   that.
    Thank you so much for all your help. It is much appreciated!
 * I tested so many event management systems but yours is the only one with proper
   functionality that can be customized, with fast support on top of that.
 * This plugin should be on the top of the list! 🙂

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

The topic ‘Problem with mail’ is closed to new replies.

 * ![](https://ps.w.org/events-made-easy/assets/icon-256x256.png?rev=1856035)
 * [Events Made Easy](https://wordpress.org/plugins/events-made-easy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-made-easy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-made-easy/)
 * [Active Topics](https://wordpress.org/support/plugin/events-made-easy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-made-easy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-made-easy/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [clintcunha](https://wordpress.org/support/users/clintcunha/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/problem-with-mail/#post-8155343)
 * Status: resolved