# How to send verification email if un-verified login attempted?

**URL:** <https://community.auth0.com/t/how-to-send-verification-email-if-un-verified-login-attempted/88130>\
**Category:** Get Help\
**Tags:** verification-email\
**Created:** [August 3, 2022, 4:27pm UTC](https://community.auth0.com/t/how-to-send-verification-email-if-un-verified-login-attempted/88130 "2022-08-03T16:27:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkstowe](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mkstowe/32/34313_2.png) [@mkstowe](https://community.auth0.com/u/mkstowe)\
**Post date:** [August 3, 2022, 4:27pm UTC](https://community.auth0.com/t/how-to-send-verification-email-if-un-verified-login-attempted/88130/1 "2022-08-03T16:27:52Z")

</div>

I’m trying to set up an action to automatically resend the verification email if an un-verified person tries to login. I found [this article](https://auth0.com/docs/customize/email/manage-email-flow) that does something similar using the old Rules syntax, but I can’t figure out how to update it to work with Actions.

---

<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:** [August 3, 2022, 7:13pm UTC](https://community.auth0.com/t/how-to-send-verification-email-if-un-verified-login-attempted/88130/3 "2022-08-03T19:13:08Z")

</div>

Hi @mkstowe,

Welcome to the Auth0 Community!

I understand you are looking to send a verification email to unverified users whenever they log in.

Firstly, your current approach of using a Post-Login Action is the correct way to resend a verification email to unverified users.

In this situation, I recommend using the Management API in Actions to call the [sendEmailVerification()](https://auth0.github.io/node-auth0/ManagementClient.html#sendEmailVerification) method to send a verification email.

Please review the following documentation on using the Management API Actions

- [How can I use the Management API in Actions?](https://community.auth0.com/t/how-can-i-use-the-management-api-in-actions/64947)

Here are the references to the Verification Email Job:

- [ManagementClient - sendEmailVerification()](https://auth0.github.io/node-auth0/ManagementClient.html#sendEmailVerification)
- [Management API - Send an email address verification email endpoint](https://auth0.com/docs/api/management/v2#!/Jobs/post_verification_email)

I hope this helps!

Please let me know if you have any questions or need help with implementation.

Thank you.

---

<div class="post-metadata">

**Author:** ![mkstowe](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mkstowe/32/34313_2.png) [@mkstowe](https://community.auth0.com/u/mkstowe)\
**Post date:** [August 3, 2022, 8:26pm UTC](https://community.auth0.com/t/how-to-send-verification-email-if-un-verified-login-attempted/88130/4 "2022-08-03T20:26:03Z")

</div>

That worked perfectly, thank you!

---

<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, 2022, 10:59am UTC](https://community.auth0.com/t/how-to-send-verification-email-if-un-verified-login-attempted/88130/5 "2022-12-22T10:59:54Z")

</div>


