# Verification Email Not Being Sent

**URL:** <https://community.auth0.com/t/verification-email-not-being-sent/61176>\
**Category:** Get Help\
**Created:** [April 15, 2021, 3:30pm UTC](https://community.auth0.com/t/verification-email-not-being-sent/61176 "2021-04-15T15:30:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgcouch1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgcouch1/32/21450_2.png) [@sgcouch1](https://community.auth0.com/u/sgcouch1)\
**Post date:** [April 15, 2021, 3:30pm UTC](https://community.auth0.com/t/verification-email-not-being-sent/61176/1 "2021-04-15T15:30:46Z")

</div>

I’m hitting the `POST /api/v2/users ` endpoint in my code, with a user object containing `email_verified: false` and the user’s email address is not receiving a verification email. I’m trying to use the email connection with passwordless login, so the user object also has `connection: "email"`.

Here are the facts:

When I use Auth0’s email service, the email gets sent. When I use the settings for my smtp server, it does not. BUT! when I send a test email using the same settings, to the same email address as is used in the code, the email does deliver. Also, after hitting the endpoint, the logs show no errors, but my smtp server shows no attempt to deliver an email.

Am I mistaken that creating a user with `email_verified: false` should send an email to the user’s address for verification? Or is there somewhere else I should be looking for issues? Or is there something I’m missing about using the email connection?

Thanks for your time!

---

<div class="post-metadata">

**Author:** ![sgo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgo/32/13789_2.png) [@sgo](https://community.auth0.com/u/sgo)\
**Post date:** [April 15, 2021, 3:54pm UTC](https://community.auth0.com/t/verification-email-not-being-sent/61176/3 "2021-04-15T15:54:41Z")

</div>

Hi @sgouch1, are you using Office 365 per chance as your tenant email provider? I have seen issues in the past with 365 not allowing emails to be sent when the “from” address does not match the credentials used to authenticate with the mail server.

If not, if you filter for “Failed Sending Notification” in your tenant logs do you see anything? There might be a hint there.

---

<div class="post-metadata">

**Author:** ![sgcouch1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgcouch1/32/21450_2.png) [@sgcouch1](https://community.auth0.com/u/sgcouch1)\
**Post date:** [April 15, 2021, 4:08pm UTC](https://community.auth0.com/t/verification-email-not-being-sent/61176/4 "2021-04-15T16:08:28Z")

</div>

No Office 365 here, I’m using Mailjet.

And no sign of any “Failed Sending Notification” in the tenant logs ☹

---

<div class="post-metadata">

**Author:** ![sgcouch1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgcouch1/32/21450_2.png) [@sgcouch1](https://community.auth0.com/u/sgcouch1)\
**Post date:** [April 15, 2021, 4:15pm UTC](https://community.auth0.com/t/verification-email-not-being-sent/61176/5 "2021-04-15T16:15:01Z")

</div>

Could it be that the sender of the real verification emails is different from the sender of the test emails? Mailjet seems to be really strict when it comes to authorized domains and sender addresses.

---

<div class="post-metadata">

**Author:** ![sgo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgo/32/13789_2.png) [@sgo](https://community.auth0.com/u/sgo)\
**Post date:** [April 15, 2021, 4:23pm UTC](https://community.auth0.com/t/verification-email-not-being-sent/61176/6 "2021-04-15T16:23:28Z")

</div>

Yes the test email will be using its own template and thus a different from address, so that could well be the issue. I would recommend double checking your email connection’s template, (found by clicking on the email box [here](https://manage.auth0.com/#/connections/passwordless)), and your [allowed senders](https://documentation.mailjet.com/hc/en-us/articles/360042759253-How-to-add-a-sender-address-) in Mailjet to check the from address being used by the email connection template is indeed allowed.

You could also configure a test email provider to remove Mailjet from the equation temporarily and check what is coming through:

- [Configure Test SMTP Email Server](https://auth0.com/docs/auth0-email-services/configure-external-smtp-email-providers/configure-test-smtp-email-servers)

---

<div class="post-metadata">

**Author:** ![sgcouch1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgcouch1/32/21450_2.png) [@sgcouch1](https://community.auth0.com/u/sgcouch1)\
**Post date:** [April 15, 2021, 5:03pm UTC](https://community.auth0.com/t/verification-email-not-being-sent/61176/7 "2021-04-15T17:03:02Z")

</div>

Woohoo! The email connection’s template was still set to be from [root@auth0.com](mailto:root@auth0.com), so Mailjet wasn’t happy. Just tested it out and it worked.

Thank you so much!!!

---

<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:** [April 16, 2021, 1:57pm UTC](https://community.auth0.com/t/verification-email-not-being-sent/61176/8 "2021-04-16T13:57:58Z")

</div>

Thanks for helping on this one Steve and glad you have it working @sgcouch1 !

---

<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:** [April 29, 2021, 12:20pm UTC](https://community.auth0.com/t/verification-email-not-being-sent/61176/9 "2021-04-29T12:20:47Z")

</div>


