# SMTP Server problem - Sendgrid

**URL:** <https://forum.mautic.org/t/smtp-server-problem-sendgrid/5110>\
**Category:** Product Support\
**Created:** [August 29, 2016, 9:07pm UTC](https://forum.mautic.org/t/smtp-server-problem-sendgrid/5110 "2016-08-29T21:07:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![arianbortoli](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@arianbortoli](https://forum.mautic.org/u/arianbortoli)\
**Post date:** [August 29, 2016, 9:07pm UTC](https://forum.mautic.org/t/smtp-server-problem-sendgrid/5110/1 "2016-08-29T21:07:23Z")

</div>

Hello, I’m new with mautic and I’m trying to integrate the send grid account, but every time i receive an error.  
  
  
  
If I try to use the send grid option show it:  
  
  
  
Unable to connect with TLS encryption Log data: ++ Starting MauticEmailBundleSwiftmailerTransportSendgridTransport \<\< 220 SG ESMTP service ready at [ismtpd0007p1las1.sendgrid.net](http://ismtpd0007p1las1.sendgrid.net) \>\> EHLO mailing.owbusiness.com.br \<\< [250-smtp.sendgrid.net](http://250-smtp.sendgrid.net) 250-8BITMIME 250-PIPELINING 250-SIZE 31457280 250-STARTTLS 250-AUTH PLAIN LOGIN 250 AUTH=PLAIN LOGIN \>\> STARTTLS \<\< 220 Begin TLS negotiation now !! Unable to connect with TLS encryption (code: 0)  
  
++ Starting MauticEmailBundleSwiftmailerTransportSendgridTransport \<\< 220 SG ESMTP service ready at [ismtpd0007p1las1.sendgrid.net](http://ismtpd0007p1las1.sendgrid.net) \>\> EHLO mailing.owbusiness.com.br \<\< [250-smtp.sendgrid.net](http://250-smtp.sendgrid.net) 250-8BITMIME 250-PIPELINING 250-SIZE 31457280 250-STARTTLS 250-AUTH PLAIN LOGIN 250 AUTH=PLAIN LOGIN \>\> STARTTLS \<\< 220 Begin TLS negotiation now !! Unable to connect with TLS encryption (code: 0)  
  
  
  
  
  
If I try to use “other smtp server” show this error:  
  
  
  
Connection could not be established with host [smtp.sendgrid.net](http://smtp.sendgrid.net) [php\_network\_getaddresses: getaddrinfo failed: Name or service not known #0] Log data: ++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.sendgrid.net](http://smtp.sendgrid.net) [php\_network\_getaddresses: getaddrinfo failed: Name or service not known #0] (code: 0)  
  
++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.sendgrid.net](http://smtp.sendgrid.net) [php\_network\_getaddresses: getaddrinfo failed: Name or service not known #0] (code: 0)  
  
  
  
I tried to use different information for the smtp, but still didn’t work.  
  
  
  
It could be problem in my installation? Please, someone can help me?

---

<div class="post-metadata">

**Author:** ![Quasi](https://avatars.discourse-cdn.com/v4/letter/q/898d66/32.png) [@Quasi](https://forum.mautic.org/u/Quasi)\
**Post date:** [September 4, 2016, 12:37pm UTC](https://forum.mautic.org/t/smtp-server-problem-sendgrid/5110/2 "2016-09-04T12:37:02Z")

</div>

Wrote an email to ninjoan as well, i’ve got the same problems…

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [September 4, 2016, 10:18pm UTC](https://forum.mautic.org/t/smtp-server-problem-sendgrid/5110/3 "2016-09-04T22:18:27Z")

</div>

the ports are opens

---

<div class="post-metadata">

**Author:** ![arianbortoli](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@arianbortoli](https://forum.mautic.org/u/arianbortoli)\
**Post date:** [August 29, 2016, 9:07pm UTC](https://forum.mautic.org/t/smtp-server-problem-sendgrid/5110/4 "2016-08-29T21:07:23Z")

</div>

Hello, I’m new with mautic and I’m trying to integrate the send grid account, but every time i receive an error.

If I try to use the send grid option show it:

Unable to connect with TLS encryption Log data: ++ Starting MauticEmailBundleSwiftmailerTransportSendgridTransport \<\< 220 SG ESMTP service ready at [ismtpd0007p1las1.sendgrid.net](http://ismtpd0007p1las1.sendgrid.net) \>\> EHLO mailing.owbusiness.com.br \<\< [250-smtp.sendgrid.net](http://250-smtp.sendgrid.net) 250-8BITMIME 250-PIPELINING 250-SIZE 31457280 250-STARTTLS 250-AUTH PLAIN LOGIN 250 AUTH=PLAIN LOGIN \>\> STARTTLS \<\< 220 Begin TLS negotiation now !! Unable to connect with TLS encryption (code: 0)  
++ Starting MauticEmailBundleSwiftmailerTransportSendgridTransport \<\< 220 SG ESMTP service ready at [ismtpd0007p1las1.sendgrid.net](http://ismtpd0007p1las1.sendgrid.net) \>\> EHLO mailing.owbusiness.com.br \<\< [250-smtp.sendgrid.net](http://250-smtp.sendgrid.net) 250-8BITMIME 250-PIPELINING 250-SIZE 31457280 250-STARTTLS 250-AUTH PLAIN LOGIN 250 AUTH=PLAIN LOGIN \>\> STARTTLS \<\< 220 Begin TLS negotiation now !! Unable to connect with TLS encryption (code: 0)

If I try to use “other smtp server” show this error:

Connection could not be established with host [smtp.sendgrid.net](http://smtp.sendgrid.net) [php\_network\_getaddresses: getaddrinfo failed: Name or service not known #0] Log data: ++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.sendgrid.net](http://smtp.sendgrid.net) [php\_network\_getaddresses: getaddrinfo failed: Name or service not known #0] (code: 0)  
++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.sendgrid.net](http://smtp.sendgrid.net) [php\_network\_getaddresses: getaddrinfo failed: Name or service not known #0] (code: 0)

I tried to use different information for the smtp, but still didn’t work.

It could be problem in my installation? Please, someone can help me?

---

<div class="post-metadata">

**Author:** ![meewosh88](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@meewosh88](https://forum.mautic.org/u/meewosh88)\
**Post date:** [August 30, 2016, 12:38pm UTC](https://forum.mautic.org/t/smtp-server-problem-sendgrid/5110/5 "2016-08-30T12:38:55Z")

</div>

[https://www.mautic.org/community/index.php/1051-sendgrid-connection-error/0](https://www.mautic.org/community/index.php/1051-sendgrid-connection-error/0)

---

<div class="post-metadata">

**Author:** ![arianbortoli](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@arianbortoli](https://forum.mautic.org/u/arianbortoli)\
**Post date:** [August 30, 2016, 8:00pm UTC](https://forum.mautic.org/t/smtp-server-problem-sendgrid/5110/6 "2016-08-30T20:00:09Z")

</div>

Using this:  
1 - “Service to send emails through” -\> Other SMTP Server  
2 - SMTP Host -\> [smtp.sendgrid.net](http://smtp.sendgrid.net)  
3 - SMTP Port -\> 465  
4 - SMTP encryption type -\> SSL  
5 - SMTP authentication mode -\> Login  
6 - Username for the selected mail service -\> Put your sendgrid username or email  
7 - Password for the selected mail service -\> Your Sendgrid Password

Show this error:  
Connection could not be established with host [smtp.sendgrid.net](http://smtp.sendgrid.net) [#0] Log data: ++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.sendgrid.net](http://smtp.sendgrid.net) [#0] (code: 0)  
++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.sendgrid.net](http://smtp.sendgrid.net) [#0] (code: 0)

How can I solve this problem?

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [August 31, 2016, 12:15pm UTC](https://forum.mautic.org/t/smtp-server-problem-sendgrid/5110/7 "2016-08-31T12:15:07Z")

</div>

send me an email `jninhilario@gmail.com` i think i have something that may help you.

---

<div class="post-metadata">

**Author:** ![poshaq](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@poshaq](https://forum.mautic.org/u/poshaq)\
**Post date:** [October 27, 2017, 4:12pm UTC](https://forum.mautic.org/t/smtp-server-problem-sendgrid/5110/8 "2017-10-27T16:12:27Z")

</div>

Hey I faced the problem too. Try PORT 2525, if you’re using gloud. This worked for me. Dont know if where you’re hosted.
