# Email simply doesn't work

**URL:** <https://forum.mautic.org/t/email-simply-doesnt-work/15604>\
**Category:** Product Support\
**Created:** [August 12, 2020, 6:27am UTC](https://forum.mautic.org/t/email-simply-doesnt-work/15604 "2020-08-12T06:27:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kushal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kushal/32/3099_2.png) [@Kushal](https://forum.mautic.org/u/Kushal)\
**Post date:** [August 12, 2020, 6:27am UTC](https://forum.mautic.org/t/email-simply-doesnt-work/15604/1 "2020-08-12T06:27:10Z")

</div>

**Your software**  
My Mautic version is: v3.0.2  
My PHP version is: 7.2.33

**Your problem**  
My problem is: that email doesn’t seem to work. Attempted zoho and gmail credentials.

Before getting to the issue;  
System Info \> Folder & Files are all writable.  
Log shows “Today’s Mautic error log is empty. Check server error log for error messages Mautic didn’t have a chance to catch.”  
I use 2 Factor for gmail, but ofcouse have an App Password which works fine with outlook and such.

Email Settings - always fails;  
Selected Gmail \> Test Connection;  
Connection could not be established with host [smtp.gmail.com](http://smtp.gmail.com) :stream\_socket\_client(): unable to connect to ssl://smtp.gmail.com:465 (Connection timed out) Log data: ++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.gmail.com](http://smtp.gmail.com) :stream\_socket\_client(): unable to connect to ssl://smtp.gmail.com:465 (Connection timed out) (code: 0)  
++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.gmail.com](http://smtp.gmail.com) :stream\_socket\_client(): unable to connect to ssl://smtp.gmail.com:465 (Connection timed out) (code: 0)

Selected OTHER and attempted to setup my ZOHO account;  
With port 465  
Connection could not be established with host [smtp.zoho.com](http://smtp.zoho.com) :stream\_socket\_client(): unable to connect to ssl://smtp.zoho.com:465 (Connection refused) Log data: ++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.zoho.com](http://smtp.zoho.com) :stream\_socket\_client(): unable to connect to ssl://smtp.zoho.com:465 (Connection refused) (code: 0)  
++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.zoho.com](http://smtp.zoho.com) :stream\_socket\_client(): unable to connect to ssl://smtp.zoho.com:465 (Connection refused) (code: 0)  
With port 587:  
Connection could not be established with host [smtp.zoho.com](http://smtp.zoho.com) :stream\_socket\_client(): unable to connect to ssl://smtp.zoho.com:587 (Connection refused) Log data: ++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.zoho.com](http://smtp.zoho.com) :stream\_socket\_client(): unable to connect to ssl://smtp.zoho.com:587 (Connection refused) (code: 0)  
++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.zoho.com](http://smtp.zoho.com) :stream\_socket\_client(): unable to connect to ssl://smtp.zoho.com:587 (Connection refused) (code: 0)

OTHER with Gmail, same error with both 465 and 587;  
Connection could not be established with host [smtp.gmail.com](http://smtp.gmail.com) :stream\_socket\_client(): unable to connect to ssl://smtp.gmail.com:465 (Connection timed out) Log data: ++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.gmail.com](http://smtp.gmail.com) :stream\_socket\_client(): unable to connect to ssl://smtp.gmail.com:465 (Connection timed out) (code: 0)  
++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.gmail.com](http://smtp.gmail.com) :stream\_socket\_client(): unable to connect to ssl://smtp.gmail.com:465 (Connection timed out) (code: 0)

System Info \> Logs still shows “Today’s Mautic error log is empty. Check server error log for error messages Mautic didn’t have a chance to catch.”  
mautic/var/logs doesn’t have any new files either.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 12, 2020, 6:50am UTC](https://forum.mautic.org/t/email-simply-doesnt-work/15604/2 "2020-08-12T06:50:54Z")

</div>

Hi,  
An idea: check if port 587 or 465 are blocked on your server.  
Also plz check this:

> [@Configuration - Mail Settings](https://forum.mautic.org/t/configuration-mail-settings/2003/3):
>
> If I google your error message, I get this result: [http://stackoverflow.com/questions/4846599/sending-email-using-php-gmail-and-swiftmailer-causes-ssl-related-error](http://stackoverflow.com/questions/4846599/sending-email-using-php-gmail-and-swiftmailer-causes-ssl-related-error) Can you try that? It must be your server settings if the issue happens for every provider.

If you decide to be more serious about emailing, and use a third party SMTP, check this:

> [@What tool to use to send millions of e-mails per month](https://forum.mautic.org/t/what-tool-to-use-to-send-millions-of-e-mails-per-month/14517/4):
>
> Sorry for the long letter, but I think you need a quick email university here: You can send email from your server, using Postfix or other MTA (mail transport protocol) but a simple server starts with a crappy reputation, so you need to improve by warming up your IP. Just imagine, that your message is delivered by a really bad smelling door to door salesman. People won’t let you in. -\> you land in spam. Again: unless you get good reputation, and grow your sending limits gradually. You can …

Good luck!

---

<div class="post-metadata">

**Author:** ![Kushal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kushal/32/3099_2.png) [@Kushal](https://forum.mautic.org/u/Kushal)\
**Post date:** [August 13, 2020, 11:13am UTC](https://forum.mautic.org/t/email-simply-doesnt-work/15604/3 "2020-08-13T11:13:47Z")

</div>

Thanks for the quick reply @joeyk  
Ports were indeed blocked! Although my wordpress has been sending out mails just fine!
