# SENDMAIL

Trigger emails with the SENDMAIL function. It can be used to send notifications when data is updated in the report.

### Syntax

```javascript
SENDMAIL(recipients, subject, header)
```

### Arguments

recipients - List of email IDs.

subject - Subject of the email.

header - Email content.

### Example

Data input dropdowns have an **On Change Formula** section where you can specify the actions to be triggered when a user selects an option. In this example, an email notification is automatically triggered when the TaxRate field is updated.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FG5yeCMo0Xz8yNYoBB3u0%2Fimage.png?alt=media&#x26;token=ff55a3ce-d4b7-4038-a16a-f21fdccf893c" alt=""><figcaption><p>Using SENDMAIL to trigger notifications</p></figcaption></figure>

In this example, the email notification captures the data updates in the TaxRate field.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2Fm5WIEaXe1CI69fhX1yp3%2Fimage.png?alt=media&#x26;token=45597ee8-f707-4eb9-b0bf-0bc1286e4228" alt=""><figcaption><p>Email notification triggered when data inputs are updated</p></figcaption></figure>
