# Email notification by tag condition

**URL:** <https://forum.inductiveautomation.com/t/email-notification-by-tag-condition/84319>\
**Category:** Ignition\
**Created:** [January 16, 2024, 1:01pm UTC](https://forum.inductiveautomation.com/t/email-notification-by-tag-condition/84319 "2024-01-16T13:01:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amir\_Farmanbar](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@Amir\_Farmanbar](https://forum.inductiveautomation.com/u/Amir_Farmanbar)\
**Post date:** [January 16, 2024, 1:01pm UTC](https://forum.inductiveautomation.com/t/email-notification-by-tag-condition/84319/1 "2024-01-16T13:01:27Z")

</div>

Is it possible that you could make a conditional automatic email in report? Something like:

IF Tag \>/= 3 in last 15 minutes, add Cell # to report, repeat for all machines  
IF tag on all cells is = 0 for last 15 minutes, no report is sent out

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [January 16, 2024, 1:19pm UTC](https://forum.inductiveautomation.com/t/email-notification-by-tag-condition/84319/2 "2024-01-16T13:19:43Z")

</div>

A quick and dirty example, as I have no idea how your tags are laid out of how the report is generated.

```python
tagPaths = ['[provider]path/to/tag1',
            '[provider]path/to/tag2',
            '[provider]path/to/tag3',
            '[provider]path/to/tag4',
            '[provider]path/to/tag5'
           ]

# Generate a list of lists containing tag paths and values where the tag value is >= 3
tagData = [[path, tag.value] for path, tag in zip(tagPaths, system.tag.readBlocking(tagPaths)) if tag.value >= 3]

if len(tagData) > 0:
	doReport(tagData)

```
