# Sendgrid - unable to connect - port 587

**URL:** https://discourse.roots.io/t/sendgrid-unable-to-connect-port-587/11428
**Category:** trellis
**Created:** 2018-01-26T05:46:43Z
**Posts:** 11
**Showing post:** 5 of 11

## Post 5 by @masoninthesis — 2018-01-27T03:23:13Z

Are you getting any 504 or 502 errors by chance?

I think this issue might be related to my recent issue: [504 Time-out - upstream timed out](https://discourse.roots.io/t/504-time-out-upstream-timed-out/11418/10)

If I were you, I’d download the [Sendgrid Wordpress Plugin](https://wordpress.org/plugins/sendgrid-email-delivery-simplified/). So far using the API keys seems to fix the issue. I’ll probably stick with this fix rather than debug the port issue.

---

_[View the full topic](https://discourse.roots.io/t/sendgrid-unable-to-connect-port-587/11428)._
