# Microsoft email provider not sending passwordless code to my users

**URL:** <https://community.auth0.com/t/microsoft-email-provider-not-sending-passwordless-code-to-my-users/134511>\
**Category:** Get Help\
**Tags:** passwordless-email-connection, connections\
**Created:** [May 20, 2024, 1:08pm UTC](https://community.auth0.com/t/microsoft-email-provider-not-sending-passwordless-code-to-my-users/134511 "2024-05-20T13:08:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazlumserbest](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mazlumserbest](https://community.auth0.com/u/mazlumserbest)\
**Post date:** [May 20, 2024, 1:08pm UTC](https://community.auth0.com/t/microsoft-email-provider-not-sending-passwordless-code-to-my-users/134511/1 "2024-05-20T13:08:07Z")

</div>

Hi, I am using passwordless authentication. I set up my email provider and test emails are working perfectly. But when I’m trying to log in with any user, emails are not received in my inbox. There is an error message like this on my logs page “Error sending email: The requested user ‘egesiber’ is invalid.” How can I fix this error? My project works on the development stage perfectly with no errors.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 20, 2024, 6:57pm UTC](https://community.auth0.com/t/microsoft-email-provider-not-sending-passwordless-code-to-my-users/134511/3 "2024-05-20T18:57:33Z")

</div>

Hi @mazlumserbest,

Welcome to the Auth0 Community!

I have checked your tenant logs for a `fn` (Failed sending notification) event and see that the email failed to send because of the following error:  
`"error": "Error sending email: The requested user 'API Explorer Application' is invalid."`

In this case, I suggest ensuring that it is a legitimate user trying to request a code for passwordless login.

Let me know if you continue having issues.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![mazlumserbest](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mazlumserbest](https://community.auth0.com/u/mazlumserbest)\
**Post date:** [May 20, 2024, 7:22pm UTC](https://community.auth0.com/t/microsoft-email-provider-not-sending-passwordless-code-to-my-users/134511/4 "2024-05-20T19:22:02Z")

</div>

Hi Rueben, I created users using Management API. In development tenant, when I create a user it automatically authorized to my test application. But in my production tenant API works differently and does not authorize users to any application. There is no other way to authorize users to applications. I didn’t find any solutions for that. I can create users but I couldn’t log in with them. Thanks for the fast reply by the way.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 21, 2024, 5:17pm UTC](https://community.auth0.com/t/microsoft-email-provider-not-sending-passwordless-code-to-my-users/134511/5 "2024-05-21T17:17:27Z")

</div>

Hi @mazlumserbest,

Thanks for the update.

> [@mazlumserbest](#):
>
> I created users using Management API. In development tenant, when I create a user it automatically authorized to my test application. But in my production tenant API works differently and does not authorize users to any application.

Whenever you create users with the Management API, it does **not** automatically log them into your application.

If you want users to automatically log in, you must have them sign up on your application directly.

Let me know how this goes for you.

Thanks,  
Rueben

---

<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 29, 2024, 12:33am UTC](https://community.auth0.com/t/microsoft-email-provider-not-sending-passwordless-code-to-my-users/134511/6 "2024-06-29T00:33:36Z")

</div>

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