# Email Notification changes

**URL:** <https://forum.inductiveautomation.com/t/email-notification-changes/5770>\
**Category:** Ignition\
**Created:** [January 31, 2013, 3:16pm UTC](https://forum.inductiveautomation.com/t/email-notification-changes/5770 "2013-01-31T15:16:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Powerplan](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@Powerplan](https://forum.inductiveautomation.com/u/Powerplan)\
**Post date:** [January 31, 2013, 3:16pm UTC](https://forum.inductiveautomation.com/t/email-notification-changes/5770/1 "2013-01-31T15:16:03Z")

</div>

Hello again

I’ve made some tables on the client that allow an administrator to change email addresses, groups etc,

I’ve noticed that there is a delay, not sure how long, but exceeding 5 minutes in writing the new values to the tables and the change being implemented.

Basically if I make the change and then set an alarm, the email will not go to the new address or person straight away.

Is there a script I can add to a button to force the update?

Chris

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [January 31, 2013, 3:52pm UTC](https://forum.inductiveautomation.com/t/email-notification-changes/5770/2 "2013-01-31T15:52:14Z")

</div>

Where is the data from the tables being written? A SQL database?

---

<div class="post-metadata">

**Author:** ![Powerplan](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@Powerplan](https://forum.inductiveautomation.com/u/Powerplan)\
**Post date:** [January 31, 2013, 4:25pm UTC](https://forum.inductiveautomation.com/t/email-notification-changes/5770/3 "2013-01-31T16:25:18Z")

</div>

Al

I’m writing back to the default “alert\_distro\_contacts”, “alert\_distro\_groups” & “alert\_distro\_gc\_map” tables

I’m not sure how often these update in the gateway and if it can be triggered.

What I’d like to do is, during a demo, on a client screen, type in a clients email, set an alarm and see him receive that email in seconds.

That’s the plan

Chris

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 31, 2013, 4:43pm UTC](https://forum.inductiveautomation.com/t/email-notification-changes/5770/4 "2013-01-31T16:43:56Z")

</div>

Writing to those tables should be instant. Every time an alert occurs we query the tables for the groups and contacts because they could have changed. We don’t cache the data in Ignition.

Are you seeing the information update in the database immediately? If not, it is possible your database is performing poorly and just taking a while to get updated.

I bet the problem really lies on the configuration of the tag. There is a setting on each alarm called “Time Deadband” which won’t allow the alert to get sent out until the it has been active for a certain period of time. Make sure your setting is set to 0 so it sends out right away. It could be set to 5 minutes or so.

---

<div class="post-metadata">

**Author:** ![Powerplan](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@Powerplan](https://forum.inductiveautomation.com/u/Powerplan)\
**Post date:** [January 31, 2013, 5:57pm UTC](https://forum.inductiveautomation.com/t/email-notification-changes/5770/5 "2013-01-31T17:57:50Z")

</div>

Travis

The alarms do go out almost instantly, there is no dead-band, it’s just that the recipient mapping or email addresses don’t update.

I have two clients running side by side and changes to the tables in one client showup within a second or so in the other, so the tables are changing

However after I refresh the contacts tab on the “Manage Distribution Groups” page on the gateway to show the new changes, it seems to work immediately.

That’s how it seems but I’ve been fooled before.

Chris

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 31, 2013, 6:09pm UTC](https://forum.inductiveautomation.com/t/email-notification-changes/5770/6 "2013-01-31T18:09:09Z")

</div>

Is there anything in the console that could help us out? Otherwise you will probably have to call in to our tech support.

---

<div class="post-metadata">

**Author:** ![Powerplan](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@Powerplan](https://forum.inductiveautomation.com/u/Powerplan)\
**Post date:** [January 31, 2013, 7:42pm UTC](https://forum.inductiveautomation.com/t/email-notification-changes/5770/7 "2013-01-31T19:42:13Z")

</div>

Travis

With all the “Alerting” logs set to “All”

Every time I change the table from the client, the table changes but nothing in the consol

if I access the “Manage Distribution Groups” page or interact with it, each time the consul reports “Distribution group objects refreshed.”

I need that to happen each time I change my table.

Could it be that the notifications don’t read directly from the tables I’m accessing and these are copied periodically or on activity at the “Manage Distribution Groups” page, to elsewhere

Chris

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 31, 2013, 7:51pm UTC](https://forum.inductiveautomation.com/t/email-notification-changes/5770/8 "2013-01-31T19:51:33Z")

</div>

Ok, I guess it is being cached. It is a newer feature of Ignition. So, in your case you just need to turn on a setting on the alert distribution profile called “Reload Periodically”. Set it to true and you will be good to go.

---

<div class="post-metadata">

**Author:** ![Powerplan](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@Powerplan](https://forum.inductiveautomation.com/u/Powerplan)\
**Post date:** [January 31, 2013, 8:04pm UTC](https://forum.inductiveautomation.com/t/email-notification-changes/5770/9 "2013-01-31T20:04:02Z")

</div>

Travis

It’s all there! I just need to look.

it says:-

[i]“Reload Periodically”

If true, will periodically reload groups and contacts from the database. If the data tables will be modified directly in the database (ie. not through the gateway config interface), this must be enabled."[/i]

Thank you 😃

I’ll test it tomrow and let you know.

Chris

---

<div class="post-metadata">

**Author:** ![Powerplan](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@Powerplan](https://forum.inductiveautomation.com/u/Powerplan)\
**Post date:** [February 1, 2013, 10:13am UTC](https://forum.inductiveautomation.com/t/email-notification-changes/5770/10 "2013-02-01T10:13:01Z")

</div>

Travis

This works fine. maximum update rate is about once a minute so very quick changes don’t reflect but I don’t see any problems with this.

Many thanks again

Chris
