# Perspective - New Session Email Alert

**URL:** <https://forum.inductiveautomation.com/t/perspective-new-session-email-alert/40758>\
**Category:** Ignition\
**Tags:** perspective, scripting, database, ignition80\
**Created:** [November 18, 2020, 11:26am UTC](https://forum.inductiveautomation.com/t/perspective-new-session-email-alert/40758 "2020-11-18T11:26:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael3](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@michael3](https://forum.inductiveautomation.com/u/michael3)\
**Post date:** [November 18, 2020, 11:26am UTC](https://forum.inductiveautomation.com/t/perspective-new-session-email-alert/40758/1 "2020-11-18T11:26:03Z")

</div>

Hi there,

Is there any way to set up an email notification to be sent when a user starts an Perspective session?

I was thinking of using the audit logs “login” action column as a starting place but any other ideas would be welcome.

Thanks,  
Mike.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [November 18, 2020, 4:21pm UTC](https://forum.inductiveautomation.com/t/perspective-new-session-email-alert/40758/2 "2020-11-18T16:21:16Z")

</div>

You could use [system.net.sendEmail()](https://docs.inductiveautomation.com/display/DOC80/system.net.sendEmail), assuming you have an SMTP server configured.

You just need to insert that call into the Script portion of a Session Startup Event (`Project > Session Events > Startup`).

---

<div class="post-metadata">

**Author:** ![michael3](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@michael3](https://forum.inductiveautomation.com/u/michael3)\
**Post date:** [December 2, 2020, 1:37pm UTC](https://forum.inductiveautomation.com/t/perspective-new-session-email-alert/40758/3 "2020-12-02T13:37:57Z")

</div>

Thanks for the quick response. This worked perfectly!
