# Error Mautic with Sendgrid

**URL:** <https://forum.mautic.org/t/error-mautic-with-sendgrid/4702>\
**Category:** Product Support\
**Created:** [August 1, 2016, 1:03pm UTC](https://forum.mautic.org/t/error-mautic-with-sendgrid/4702 "2016-08-01T13:03:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinicius\_Gabriel](https://avatars.discourse-cdn.com/v4/letter/v/f04885/32.png) [@Vinicius\_Gabriel](https://forum.mautic.org/u/Vinicius_Gabriel)\
**Post date:** [August 1, 2016, 1:03pm UTC](https://forum.mautic.org/t/error-mautic-with-sendgrid/4702/1 "2016-08-01T13:03:22Z")

</div>

Hi!  
  
  
  
I’m setting the Mautic as Sendgrid, but I’m having this error when testing sending emails:

Code:

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

  
  
has anyone experienced this error? Know how to solve?  
  
I follow this tutorial for setting: http://rodrigodemetrio.com/blog/como-integrar-o-mautic-ao-sendgrid/  
  
Thanks for attention.

---

<div class="post-metadata">

**Author:** ![Vinicius\_Gabriel](https://avatars.discourse-cdn.com/v4/letter/v/f04885/32.png) [@Vinicius\_Gabriel](https://forum.mautic.org/u/Vinicius_Gabriel)\
**Post date:** [August 1, 2016, 1:03pm UTC](https://forum.mautic.org/t/error-mautic-with-sendgrid/4702/2 "2016-08-01T13:03:22Z")

</div>

Hi!

I’m setting the Mautic as Sendgrid, but I’m having this error when testing sending emails:

`Connection could not be established with host smtp.sendgrid.net [#0] Log data: ++ Starting Swift_SmtpTransport !! Connection could not be established with host smtp.sendgrid.net [#0] (code: 0)
++ Starting Swift_SmtpTransport !! Connection could not be established with host smtp.sendgrid.net [#0] (code: 0)`

has anyone experienced this error? Know how to solve?

I follow this tutorial for setting: [http://rodrigodemetrio.com/blog/como-integrar-o-mautic-ao-sendgrid/](http://rodrigodemetrio.com/blog/como-integrar-o-mautic-ao-sendgrid/)

Thanks for attention.

---

<div class="post-metadata">

**Author:** ![Andrea](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Andrea](https://forum.mautic.org/u/Andrea)\
**Post date:** [August 1, 2016, 1:57pm UTC](https://forum.mautic.org/t/error-mautic-with-sendgrid/4702/3 "2016-08-01T13:57:41Z")

</div>

Hi Vinicius,

I had some problem with the API too and I’ve chosen to configure SendGrid as an SMTP server with the following settings:  
 ![](http://i66.tinypic.com/5xsz9c.png)

Obviously you have to change the username and the password but in my case it works and I hope for you too.

---

<div class="post-metadata">

**Author:** ![eurogroup](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@eurogroup](https://forum.mautic.org/u/eurogroup)\
**Post date:** [August 1, 2016, 1:59pm UTC](https://forum.mautic.org/t/error-mautic-with-sendgrid/4702/4 "2016-08-01T13:59:26Z")

</div>

Hi,

I’m having the same issue with various mail settings. I personally think this is a version 2 issue as my connection to various mail services is atrocious. One minute it connects next time I get the same error messages. Unfortunately i cannot get into my configuration as Mautic stalls continiously but if you are connecting via SMTP 25, 2525 or 587 you need to send as Plain Text. Also make sure you router has port 25, 2525 or 587 open. If you are running Mautic on a local machine as I am them aslo ensure port mapping is set to your local machine for the ports.

---

<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 1, 2016, 2:03pm UTC](https://forum.mautic.org/t/error-mautic-with-sendgrid/4702/5 "2016-08-01T14:03:36Z")

</div>

@Vinicius Gabriel @eurogroup problem solved?

---

<div class="post-metadata">

**Author:** ![Vinicius\_Gabriel](https://avatars.discourse-cdn.com/v4/letter/v/f04885/32.png) [@Vinicius\_Gabriel](https://forum.mautic.org/u/Vinicius_Gabriel)\
**Post date:** [August 2, 2016, 12:09pm UTC](https://forum.mautic.org/t/error-mautic-with-sendgrid/4702/6 "2016-08-02T12:09:56Z")

</div>

@eurogroup you are using version 2 and this works? In this case, I would have to change the port 465 by one of those that you specified?
