# Mautic + Sendgrid

**URL:** https://forum.mautic.org/t/mautic-sendgrid/7857
**Category:** Product Support
**Created:** [March 8, 2017, 11:01pm UTC](https://forum.mautic.org/t/mautic-sendgrid/7857 "2017-03-08T23:01:06Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![sourdoughbread](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sourdoughbread/32/2060_2.png) [@sourdoughbread](https://forum.mautic.org/u/sourdoughbread)
#### Post date: [March 8, 2017, 11:01pm UTC](https://forum.mautic.org/t/mautic-sendgrid/7857/1 "2017-03-08T23:01:06Z")

</div>

Hi,  
  
  
  
I am trying to connect Mautic with Sendgrid to send emails. I can’t use the SMTP settings since my web host blocks those ports and won’t open them (the only port they have open is 2587).  
  
  
  
I am trying to connect via API but it is still not working. I am using my sendgrid email as the username and the API key as the password. I am getting the following error:  
  
MauticEmailBundleSwiftmailerTransportSendgridTransport \<\< [220-a2ls20.a2hosting.com](http://220-a2ls20.a2hosting.com) ESMTP Exim 4.88 #1 Wed, 08 Mar 2017 17:59:58 -0500 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.  
  
  
  
Any ideas on how to connect via API?

---

<div class="post-metadata">

### Author: ![sourdoughbread](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sourdoughbread/32/2060_2.png) [@sourdoughbread](https://forum.mautic.org/u/sourdoughbread)
#### Post date: [March 8, 2017, 11:01pm UTC](https://forum.mautic.org/t/mautic-sendgrid/7857/2 "2017-03-08T23:01:06Z")

</div>

Hi,

I am trying to connect Mautic with Sendgrid to send emails. I can’t use the SMTP settings since my web host blocks those ports and won’t open them (the only port they have open is 2587).

I am trying to connect via API but it is still not working. I am using my sendgrid email as the username and the API key as the password. I am getting the following error:  
MauticEmailBundleSwiftmailerTransportSendgridTransport \<\< [220-a2ls20.a2hosting.com](http://220-a2ls20.a2hosting.com) ESMTP Exim 4.88 #1 Wed, 08 Mar 2017 17:59:58 -0500 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.

Any ideas on how to connect via API?

---

<div class="post-metadata">

### Author: ![sourdoughbread](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sourdoughbread/32/2060_2.png) [@sourdoughbread](https://forum.mautic.org/u/sourdoughbread)
#### Post date: [March 13, 2017, 4:57am UTC](https://forum.mautic.org/t/mautic-sendgrid/7857/3 "2017-03-13T04:57:48Z")

</div>

Does the SendGrid API option in Mautic work?

---

<div class="post-metadata">

### Author: ![sourdoughbread](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sourdoughbread/32/2060_2.png) [@sourdoughbread](https://forum.mautic.org/u/sourdoughbread)
#### Post date: [March 13, 2017, 7:02am UTC](https://forum.mautic.org/t/mautic-sendgrid/7857/4 "2017-03-13T07:02:16Z")

</div>

They won’t open any smtp ports.

Anyone have an idea when Sendgrid API connection will be available? Would be quite helpful.

---

<div class="post-metadata">

### Author: ![martinstrom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/martinstrom/32/433_2.png) [@martinstrom](https://forum.mautic.org/u/martinstrom)
#### Post date: [March 13, 2017, 7:12am UTC](https://forum.mautic.org/t/mautic-sendgrid/7857/5 "2017-03-13T07:12:41Z")

</div>

I would setup a $5 vps on digitalocean with serverpilot instead if I were you. You will have total control then

---

<div class="post-metadata">

### Author: ![sourdoughbread](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sourdoughbread/32/2060_2.png) [@sourdoughbread](https://forum.mautic.org/u/sourdoughbread)
#### Post date: [March 13, 2017, 7:13am UTC](https://forum.mautic.org/t/mautic-sendgrid/7857/6 "2017-03-13T07:13:31Z")

</div>

@martinstrom Thanks for the tip. That is something I will be doing in the near future.

---

<div class="post-metadata">

### Author: ![martinstrom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/martinstrom/32/433_2.png) [@martinstrom](https://forum.mautic.org/u/martinstrom)
#### Post date: [March 13, 2017, 1:59pm UTC](https://forum.mautic.org/t/mautic-sendgrid/7857/7 "2017-03-13T13:59:20Z")

</div>

We use Serverpilot to have the server more secure and let Serverpilot fix all the patches for our VPS on DigitalOcean, there is also Cloudways for running your own VPS too. But we have so much traffic on our hosts now so shared hosting is no alternative for us.
