# smtp problem : cannot send a email

**URL:** <https://forum.mautic.org/t/smtp-problem-cannot-send-a-email/3995>\
**Category:** Product Support\
**Created:** [May 26, 2016, 1:01pm UTC](https://forum.mautic.org/t/smtp-problem-cannot-send-a-email/3995 "2016-05-26T13:01:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![remy](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@remy](https://forum.mautic.org/u/remy)\
**Post date:** [May 26, 2016, 1:01pm UTC](https://forum.mautic.org/t/smtp-problem-cannot-send-a-email/3995/1 "2016-05-26T13:01:32Z")

</div>

Hello !  
  
  
  
I am started using mautic last week.  
  
If this can help, my os is windows 10 and i install mautic with bitmani  
  
  
  
I created a form with an action :  
  
  
  
add a submit form -\> send email to contact -\> new email -\> add email -\> i filled the fields to a gmail adress.  
  
  
  
i switched to landing page -\> edit -\> launch builder -\> i drag and drop the name of my form into a fields.  
  
  
  
I render the page on firefox : works fine.  
  
  
  
and when i click on the submit button, it display a loading circle ate the right of the button but it did not send the email.  
  
  
  
  
  
i went to the configuration panel -\> email setting -\> i filles the fields with gmail adress and the gmail service.  
  
i click on : send test email.  
  
It shows that error message :  
  
  
  
Connection could not be established with host [smtp.gmail.com](http://smtp.gmail.com) [#0] Log data: ++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.gmail.com](http://smtp.gmail.com) [#0] (code: 0)  
  
++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.gmail.com](http://smtp.gmail.com) [#0] (code: 0)  
  
  
  
Why could i not send email ?  
  
  
  
Thank you

---

<div class="post-metadata">

**Author:** ![remy](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@remy](https://forum.mautic.org/u/remy)\
**Post date:** [May 26, 2016, 1:01pm UTC](https://forum.mautic.org/t/smtp-problem-cannot-send-a-email/3995/2 "2016-05-26T13:01:32Z")

</div>

Hello !

I am started using mautic last week.  
If this can help, my os is windows 10 and i install mautic with bitmani

I created a form with an action :

add a submit form -\> send email to contact -\> new email -\> add email -\> i filled the fields to a gmail adress.

i switched to landing page -\> edit -\> launch builder -\> i drag and drop the name of my form into a fields.

I render the page on firefox : works fine.

and when i click on the submit button, it display a loading circle ate the right of the button but it did not send the email.

i went to the configuration panel -\> email setting -\> i filles the fields with gmail adress and the gmail service.  
i click on : send test email.  
It shows that error message :

Connection could not be established with host [smtp.gmail.com](http://smtp.gmail.com) [#0] Log data: ++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.gmail.com](http://smtp.gmail.com) [#0] (code: 0)  
++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.gmail.com](http://smtp.gmail.com) [#0] (code: 0)

Why could i not send email ?

Thank you

---

<div class="post-metadata">

**Author:** ![gerotutu](https://avatars.discourse-cdn.com/v4/letter/g/e9a140/32.png) [@gerotutu](https://forum.mautic.org/u/gerotutu)\
**Post date:** [May 31, 2016, 4:06pm UTC](https://forum.mautic.org/t/smtp-problem-cannot-send-a-email/3995/3 "2016-05-31T16:06:31Z")

</div>

To activate a Gmail account in Mautic, I follow the following steps: [https://support.google.com/mail/answer/14257](https://support.google.com/mail/answer/14257)  
And then these ones: [https://www.google.com/settings/security/lesssecureapps](https://www.google.com/settings/security/lesssecureapps) (as described here: [https://support.google.com/accounts/answer/6010255](https://support.google.com/accounts/answer/6010255))

Hope that helps.  
Cheers.

---

<div class="post-metadata">

**Author:** ![remy](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@remy](https://forum.mautic.org/u/remy)\
**Post date:** [June 1, 2016, 7:16am UTC](https://forum.mautic.org/t/smtp-problem-cannot-send-a-email/3995/4 "2016-06-01T07:16:18Z")

</div>

i will try it.

Thank you !
