# Setup E-Mail Notification Triggers

You can set up Trigger objects to specify actions when an event occurs. One type of Trigger object, "Notification", allows sending email notifications to multiple addresses for events related to your agents.

### Setting up a Notification Trigger <a href="#setting-up-a-notification-trigger" id="setting-up-a-notification-trigger"></a>

**Step 1: Create a new "Notification" trigger**

Browse to **Triggers** and create a new Trigger object of type **Notification**.

![](/files/zBaqS7n1E47P4L2NuB9Q)

Configure a new name to the new notification trigger object:

**Step 2: Configure intervals and email addresses**

1. **Intervals in hours** - Specify the interval in hours for receiving notifications. You will receive an email at each set interval (e.g., every 2 hours) if any events occurred.
2. **Emails recipients** - You can choose one of the following options:
   1. **Send all admins in the tenant** - According to the Admins listed under **Account** -> **Users**.
   2. **Send all users in the tenant** - According to the list of users listed under **Account** -> **Users**.
   3. **Custom Emails -** Send to a customize list of email addresses

![](/files/xqvpzN1cnapWpX2bW3sA)\
\
\
&#x20;**Step 3: Choose the Events you wish to get notified about**

Select the checkboxes for events you want to be notified about. You can also choose all the events.\
You can get select to get email notifications in case an Agent connects, gets disconnected and/or sends some kind of urgent notification.

<figure><img src="/files/rUpPRJY2ZU5tuzs1ncUJ" alt=""><figcaption></figcaption></figure>

**Step 4: Setup your Threat Prevention policy to use the new Log Trigger object/s**

1. Browse to **Policy**->**Assets** and edit the asset you wish to modify.
2. Connect the "Notification Trigger" by selecting it in the "Notification triggers" field in the "General Tab".
3. Enforce Policy.

&#x20;![](/files/L6qzXBMn5ttzWAAWYKXY)&#x20;

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.openappsec.io/setup-instructions/setup-e-mail-notification-triggers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
