---
url: /process-functions/notification-email.md
description: Note that this has been deprecated in favour of EmailBuilder
---

# notification.email&#x20;

:::info
Note that this has been deprecated in favour of [EmailBuilder](/process-functions/emailbuilder)
:::

This function can be used to send a notification through email.

```js
notification.email(to, from, subject, html, [cc])
```

#### Parameters

* `to` - Recipient of the email.
* `from` - Sender of the email.
* `subject` - Subject of the email.
* `html` - Content of the email.
* `cc` - (Optional) An array of emails to include in the cc of the email.&#x20;

#### Example

```js
notification.email(
    "support@modlr.co",
    "admin@modlr.co",
    "Hello",
    "Hello Support",
    [
        "cc1@modlr.co",
        "cc2@modlr.co"
    ]
);
```
