# Send email if user logged in from another device

**URL:** <https://community.auth0.com/t/send-email-if-user-logged-in-from-another-device/65198>\
**Category:** Get Help\
**Created:** [June 28, 2021, 4:14pm UTC](https://community.auth0.com/t/send-email-if-user-logged-in-from-another-device/65198 "2021-06-28T16:14:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ciscode](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ciscode/32/12872_2.png) [@ciscode](https://community.auth0.com/u/ciscode)\
**Post date:** [June 28, 2021, 4:14pm UTC](https://community.auth0.com/t/send-email-if-user-logged-in-from-another-device/65198/1 "2021-06-28T16:14:51Z")

</div>

Hello everyone.

Is there a default configuration that sends an email if a user has logged in from another IP?  
Any resource to implement something like this?

---

<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:** [June 28, 2021, 9:01pm UTC](https://community.auth0.com/t/send-email-if-user-logged-in-from-another-device/65198/3 "2021-06-28T21:01:38Z")

</div>

Hi @ciscode,

Welcome to the Community!

There isn’t a default feature for this, but you should be able to build this out using [Actions](https://auth0.com/docs/actions).

You can use a [pre-registration action](https://auth0.com/docs/actions/triggers/pre-user-registration) to add the initial IP address to the user’s app\_metadata.

Then in a [post-login action](https://auth0.com/docs/actions/triggers/post-login), you can check that the IP in the user’s app\_metadata matches the IP from the login event. If it doesn’t send your email notification.

---

<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:** [July 13, 2021, 9:02pm UTC](https://community.auth0.com/t/send-email-if-user-logged-in-from-another-device/65198/4 "2021-07-13T21:02:10Z")

</div>

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