---
url: /process-functions/notification-email.md
description: Sends an email.
---

# notification.email&#x20;

::: warning Deprecated
Use [`EmailBuilder`](/process-functions/emailbuilder) instead.
:::

Sends an email.

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

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `to` | `string` | The recipient's email address. |
| `from` | `string` | The sender's email address. |
| `subject` | `string` | The subject of the email. |
| `html` | `string` | The content of the email. |
| `cc` | `string[]` | Optional. The email addresses to cc.  |

## Returns

`true` if the email was sent, otherwise `false`.

## Examples

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