# Email on Value Changed

**URL:** <https://forum.inductiveautomation.com/t/email-on-value-changed/60436>\
**Category:** Ignition\
**Created:** [June 7, 2022, 3:44am UTC](https://forum.inductiveautomation.com/t/email-on-value-changed/60436 "2022-06-07T03:44:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sagar](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sagar](https://forum.inductiveautomation.com/u/sagar)\
**Post date:** [June 7, 2022, 3:44am UTC](https://forum.inductiveautomation.com/t/email-on-value-changed/60436/1 "2022-06-07T03:44:50Z")

</div>

Hello, all. I am trying to find any article that allows me to send an e-mail whenever a value is changed of a tag. The tag itself will go from 10 - 100, and when it’s something like 50, I want it to e-mail. However, I am not finding any good information on how to do this without setting it up as an alarm, but do not want to flood my alarm journal. Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [June 7, 2022, 3:49am UTC](https://forum.inductiveautomation.com/t/email-on-value-changed/60436/2 "2022-06-07T03:49:37Z")

</div>

You can use an alarm notificaion  
[https://docs.inductiveautomation.com/display/DOC81/Simple+One-Way+Email+Notification+Profile](https://docs.inductiveautomation.com/display/DOC81/Simple+One-Way+Email+Notification+Profile)

Or just use `system.net.sendEmail` in a gateway tag change script.  
[https://docs.inductiveautomation.com/display/DOC81/system.net.sendEmail](https://docs.inductiveautomation.com/display/DOC81/system.net.sendEmail)

---

<div class="post-metadata">

**Author:** ![sagar](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sagar](https://forum.inductiveautomation.com/u/sagar)\
**Post date:** [June 7, 2022, 3:57am UTC](https://forum.inductiveautomation.com/t/email-on-value-changed/60436/3 "2022-06-07T03:57:32Z")

</div>

“Gateway tag change script” is located on the tag properties itself?

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [June 7, 2022, 3:59am UTC](https://forum.inductiveautomation.com/t/email-on-value-changed/60436/4 "2022-06-07T03:59:52Z")

</div>

No, here is the link to the docs page.  
[https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts](https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts)

---

<div class="post-metadata">

**Author:** ![sagar](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sagar](https://forum.inductiveautomation.com/u/sagar)\
**Post date:** [June 7, 2022, 3:03pm UTC](https://forum.inductiveautomation.com/t/email-on-value-changed/60436/5 "2022-06-07T15:03:10Z")

</div>

Within my Designer, under “Scripting,” I only have Project Library, and not Gateway Scripts like the link you have provided.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 7, 2022, 3:49pm UTC](https://forum.inductiveautomation.com/t/email-on-value-changed/60436/6 "2022-06-07T15:49:11Z")

</div>

Are you on Edge?

---

<div class="post-metadata">

**Author:** ![sagar](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sagar](https://forum.inductiveautomation.com/u/sagar)\
**Post date:** [June 7, 2022, 4:00pm UTC](https://forum.inductiveautomation.com/t/email-on-value-changed/60436/7 "2022-06-07T16:00:53Z")

</div>

I am on Edge, yes. Is there a way to accomplish this on Edge?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 7, 2022, 4:07pm UTC](https://forum.inductiveautomation.com/t/email-on-value-changed/60436/8 "2022-06-07T16:07:40Z")

</div>

Gateway scoped scripts are gated behind the Edge Compute plugin:  
[https://docs.inductiveautomation.com/display/DOC81/Edge+Compute](https://docs.inductiveautomation.com/display/DOC81/Edge+Compute)

---

<div class="post-metadata">

**Author:** ![Jeff\_Dahl](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@Jeff\_Dahl](https://forum.inductiveautomation.com/u/Jeff_Dahl)\
**Post date:** [October 16, 2022, 3:23pm UTC](https://forum.inductiveautomation.com/t/email-on-value-changed/60436/9 "2022-10-16T15:23:14Z")

</div>

I was not able to get this code to work but I did find a way to mode another snipped from reporting to work and add to a script behind a button if anyone is interested. I will post if someone would like to see it.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [October 16, 2022, 5:05pm UTC](https://forum.inductiveautomation.com/t/email-on-value-changed/60436/10 "2022-10-16T17:05:42Z")

</div>

Sure; we would love to see your code. Go ahead and post it please.
