# SendGrid email provider not working with api key

**URL:** <https://community.auth0.com/t/sendgrid-email-provider-not-working-with-api-key/105150>\
**Category:** Get Help\
**Tags:** email-templates-branding, branding\
**Created:** [April 20, 2023, 10:41am UTC](https://community.auth0.com/t/sendgrid-email-provider-not-working-with-api-key/105150 "2023-04-20T10:41:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark1987](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mark1987](https://community.auth0.com/u/mark1987)\
**Post date:** [April 20, 2023, 10:41am UTC](https://community.auth0.com/t/sendgrid-email-provider-not-working-with-api-key/105150/1 "2023-04-20T10:41:25Z")

</div>

Hi,

I have selected Sendgrid as my email provider and added the API key from sendgrid.

However, no emails are being received.

For example if I do send verification email, I don’t receive one.  
Emails only seem to work if I turn send grid off using the toggle and revert to Auth0 as the email provider.

**Things tried:**

I’ve checked the key is correct and the from is correct.  
I’ve followed the steps here as well for restricted usage: [Configure SendGrid as External SMTP Email Provider](https://auth0.com/docs/customize/email/smtp-email-providers/configure-sendgrid-as-external-smtp-email-provider)

**Error message from logs:**

 ![image](https://global.discourse-cdn.com/auth0/original/3X/3/4/34b97cf850bea44a315d522c88ff328b3041253a.png)

Any idea on how I can solve this issue?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 24, 2023, 1:40pm UTC](https://community.auth0.com/t/sendgrid-email-provider-not-working-with-api-key/105150/3 "2023-04-24T13:40:43Z")

</div>

Hi @mark1987

That error indicates you are trying to send an email with the _From_ field that is not configured as a verified sender.

Essentially, you must register an email address and prove that you have ownership, to be able to send emails from it.

For example, if I want to send emails from `support@mywebsite.com`, I have to prove I have ownership of this email by verifying with SendGrid.

This article walks through setting it up: [Single Sender Verification | Twilio](https://docs.sendgrid.com/ui/sending-email/sender-verification)

---

<div class="post-metadata">

**Author:** ![mark1987](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mark1987](https://community.auth0.com/u/mark1987)\
**Post date:** [April 25, 2023, 12:37pm UTC](https://community.auth0.com/t/sendgrid-email-provider-not-working-with-api-key/105150/5 "2023-04-25T12:37:38Z")

</div>

> [@dan.woda](#):
>
> verified sender.

The from email is a verified sender with Send Grid.

I already use the same from email address for my live site.

Not sure why it’s not working for Auth0.  
Interestingly, it works if I write an action.

But I need it to work for verifying a user email on sign up.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 25, 2023, 12:44pm UTC](https://community.auth0.com/t/sendgrid-email-provider-not-working-with-api-key/105150/6 "2023-04-25T12:44:26Z")

</div>

@mark1987,

Could you please DM me the email address you are using as your verified sender and the name of your Auth0 Tenant?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 16, 2023, 1:21pm UTC](https://community.auth0.com/t/sendgrid-email-provider-not-working-with-api-key/105150/8 "2023-06-16T13:21:40Z")

</div>

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