# SMTP with an API key

**URL:** https://meta.discourse.org/t/smtp-with-an-api-key/171734
**Category:** Support
**Created:** [November 30, 2020, 1:20pm UTC](https://meta.discourse.org/t/smtp-with-an-api-key/171734 "2020-11-30T13:20:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![yoavweiss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yoavweiss/32/116811_2.png) [@yoavweiss](https://meta.discourse.org/u/yoavweiss)
#### Post date: [November 30, 2020, 1:20pm UTC](https://meta.discourse.org/t/smtp-with-an-api-key/171734/1 "2020-11-30T13:20:17Z")

</div>

Hello,

I’m using SendGrid/Twilio for sending out emails related to my Discourse instance, and they are moving from username/password based authentication to an API key based one.  
I’m trying to migrate to the latter, but failed to find documentation on how one can configure that with Discourse.

Could you point me in the right direction?

Cheers 🙂  
Yoav

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 30, 2020, 2:34pm UTC](https://meta.discourse.org/t/smtp-with-an-api-key/171734/2 "2020-11-30T14:34:42Z")

</div>

As described at [How to send an Email with SMTP | SendGrid Docs | Twilio](https://sendgrid.com/docs/for-developers/sending-email/getting-started-smtp/)

You just encode your api key and use it as the smtp password.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 30, 2020, 2:34pm UTC](https://meta.discourse.org/t/smtp-with-an-api-key/171734/3 "2020-12-30T14:34:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
