> For the complete documentation index, see [llms.txt](https://docs.datajet-app.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datajet-app.com/liquid/filters/email.md).

# email

{% hint style="info" %}
Deprecated. Use [email](/liquid/tags/email.md) tag instead.
{% endhint %}

`email` sends email notification. It accepts JSON object with all parameters required to send an email.

```javascript
{% json email_params %}
   {
        "to": "test@email.com",
        "subject": "Dummy",
        "replyTo": "test@email.com",
        "html": "<h2> Hello! </h2>",
        "attachments": [
          {
            "filename": "test.csv",
            "content": "name,last_name \n john,smith"
          }
        ]
    }
{% endjson %}


{{ email_params | email }}
```

Your email body can contain `html`. Also it is possible to send attachments of max size 10 MB.

{% hint style="warning" %}
In case of trial subscription, each email sent will use 50 credits. For subscribed users this action will use 1 credit.
{% endhint %}
