# Not able to integrate with sendgrid

**URL:** <https://meta.discourse.org/t/not-able-to-integrate-with-sendgrid/127523>\
**Category:** Self-hosting\
**Created:** [9월 3, 2019, 8:51오후 UTC](https://meta.discourse.org/t/not-able-to-integrate-with-sendgrid/127523 "2019-09-03T20:51:57Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Satwik\_Kansal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/satwik_kansal/32/155156_2.png) [@Satwik\_Kansal](https://meta.discourse.org/u/Satwik_Kansal)\
**Post date:** [9월 3, 2019, 8:51오후 UTC](https://meta.discourse.org/t/not-able-to-integrate-with-sendgrid/127523/1 "2019-09-03T20:51:57Z")

</div>

Hi,

I’m trying to use Sendgrid email service and keep getting this error in the logs

```
Job exception: 535 Authentication failed: Bad username / password

```

I’m not sure what I’m doing wrong, here’s how my configuration looks like

```
 DISCOURSE_SMTP_ADDRESS: smtp.sendgrid.net
 DISCOURSE_SMTP_PORT: 587
 DISCOURSE_SMTP_USER_NAME: apiKey
 DISCOURSE_SMTP_PASSWORD: 'SG.xxxx.xxxxxx.xxxx'

```

I’ve also tried to use port 2525 on the suggestion of [Fresh install. Works. Sendgrid not sending emails - #5 by Ham](https://meta.discourse.org/t/fresh-install-works-sendgrid-not-sending-emails/68395/5) , but that didn’t work either.

I’m able to establish a connection using telnet.

Can someone please help? Any idea what I could be doing wrong?

---

_[View the full topic](https://meta.discourse.org/t/not-able-to-integrate-with-sendgrid/127523)._
