# Emails not being sent (including with custom SMTP provider)

**URL:** <https://community.auth0.com/t/emails-not-being-sent-including-with-custom-smtp-provider/74790>\
**Category:** Get Help\
**Tags:** email, passwordless\
**Created:** [December 14, 2021, 1:35am UTC](https://community.auth0.com/t/emails-not-being-sent-including-with-custom-smtp-provider/74790 "2021-12-14T01:35:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mm-raphael](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mm-raphael/32/33738_2.png) [@mm-raphael](https://community.auth0.com/u/mm-raphael)\
**Post date:** [December 14, 2021, 1:35am UTC](https://community.auth0.com/t/emails-not-being-sent-including-with-custom-smtp-provider/74790/1 "2021-12-14T01:35:52Z")

</div>

This was brought up in another thread, but it’s been marked as solved, so I want to bring it up here, because I think there’s a deeper problem.

Basically we rely on passwordless auth through email, but emails aren’t being sent.

We setup an external SMTP provider (MailJet) and the SMTP test email sent by Auth0 went through immediately, but auth codes are not being sent, leading me to believe there’s an issue somewhere else in Auth0. A few hours ago, everything was fine. The only change we’ve made is switching to custom SMTP _after_ the emails stopped working.

Just for reference, here are the Auth0 logs:

 ![Screen Shot 2021-12-13 at 17.10.55](https://global.discourse-cdn.com/auth0/original/3X/2/9/29e94045c07c1f1c2456268dc2f9dd1e742c30d2.png)

Here are the MailJet logs:

 ![Screen Shot 2021-12-13 at 17.09.59](https://global.discourse-cdn.com/auth0/original/3X/a/7/a7d8a72c2729d638455f8a75bb37ec6667ed3932.png)

So when Auth0 _does_ send emails through MailJet (like the test email which appears in the mailjet logs), it seems to work fine. But the Auth0 logs show auth codes that never make it into MailJet at all.

Since we haven’t changed anything, my instinct is that something is going wrong internally with Auth0?

Just figured I’d make this new thread for visibility because now we’re getting a bunch of users emailing us saying that auth isn’t working.

---

<div class="post-metadata">

**Author:** ![philiphickey\_glean](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/philiphickey_glean/32/33431_2.png) [@philiphickey\_glean](https://community.auth0.com/u/philiphickey_glean)\
**Post date:** [December 14, 2021, 3:10pm UTC](https://community.auth0.com/t/emails-not-being-sent-including-with-custom-smtp-provider/74790/2 "2021-12-14T15:10:16Z")

</div>

I can confirm we are also experiencing this issue. We do not have a custom SMTP provider.

---

<div class="post-metadata">

**Author:** ![refaut](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/refaut/32/33771_2.png) [@refaut](https://community.auth0.com/u/refaut)\
**Post date:** [December 14, 2021, 3:48pm UTC](https://community.auth0.com/t/emails-not-being-sent-including-with-custom-smtp-provider/74790/3 "2021-12-14T15:48:44Z")

</div>

We’re also having an outage because auth0 passwordless login emails aren’t being sent.

---

<div class="post-metadata">

**Author:** ![bbossola](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bbossola/32/12420_2.png) [@bbossola](https://community.auth0.com/u/bbossola)\
**Post date:** [December 14, 2021, 4:05pm UTC](https://community.auth0.com/t/emails-not-being-sent-including-with-custom-smtp-provider/74790/4 "2021-12-14T16:05:19Z")

</div>

On our side, we are experiencing very slow email processing on validation emails. Check if this eventually happens in one hour: for us, it takes 45 minutes to receive the email, even if the job appears to be immediately completed. Initially, we thought it was not working, see here:

> [@Address verification emails are extremely slow (was: are not being sent)](https://community.auth0.com/t/address-verification-emails-are-extremely-slow-was-are-not-being-sent/74862/9):
>
> Another one here: { "date": "2021-12-14T15:26:35.252Z", "type": "sapi", "description": "Send an email address verification email", "client\_id": "GTEm8P6Q5LJUqFsd3sLul8rm0nej9i3o", "client\_name": "", "ip": "35.167.74.121", "user\_agent": "Chrome 96.0.4664 / Linux 0.0.0", "details": { "request": { "method": "post", "path": "/api/v2/jobs/verification-email", "query": {}, "userAgent": "Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) …

---

<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:** [December 14, 2021, 4:47pm UTC](https://community.auth0.com/t/emails-not-being-sent-including-with-custom-smtp-provider/74790/5 "2021-12-14T16:47:44Z")

</div>

We have seen some latency with the built-in provider. The built in provider is **for testing purposes only** and should not be used in production. Please set up a custom provider to resolve this issue.

@mm-raphael If you are still seeing latency using a custom provider, please send me a DM with your tenant name.

---

<div class="post-metadata">

**Author:** ![mm-raphael](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mm-raphael/32/33738_2.png) [@mm-raphael](https://community.auth0.com/u/mm-raphael)\
**Post date:** [December 15, 2021, 10:05pm UTC](https://community.auth0.com/t/emails-not-being-sent-including-with-custom-smtp-provider/74790/6 "2021-12-15T22:05:52Z")

</div>

For anyone else who comes across this, @dan.woda helped me figure it out 🙂

The problem was that Auth0 doesn’t use the “from” email configured in the SMTP provider settings for the Passwordless flows. Instead, it has its own separate default “from” email, which is [root@auth0.com](mailto:root@auth0.com). Since most SMTP providers won’t allow emails from unverified sources (i.e. domains you don’t control, like [auth0.com](http://auth0.com)), the emails don’t go through. So you need to update your “from” email in your SMTP provider settings _and_ your Passwordless email settings for everything to work.

In our case, I had setup passwordless long enough ago, that when I switched us over to a custom SMTP provider, I did not remember that I would have to update the “from” email in multiple places.

---

<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:** [December 15, 2021, 10:06pm UTC](https://community.auth0.com/t/emails-not-being-sent-including-with-custom-smtp-provider/74790/7 "2021-12-15T22:06:39Z")

</div>

Thanks for posting an update!

---

<div class="post-metadata">

**Author:** ![mm-raphael](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mm-raphael/32/33738_2.png) [@mm-raphael](https://community.auth0.com/u/mm-raphael)\
**Post date:** [December 15, 2021, 10:07pm UTC](https://community.auth0.com/t/emails-not-being-sent-including-with-custom-smtp-provider/74790/8 "2021-12-15T22:07:00Z")

</div>

Thanks for the help! 😃

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 22, 2021, 3:07pm UTC](https://community.auth0.com/t/emails-not-being-sent-including-with-custom-smtp-provider/74790/9 "2021-12-22T15:07:55Z")

</div>


