# email

{% hint style="info" %}
Deprecated. Use [email](https://docs.datajet-app.com/liquid/tags/email) 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.&#x20;

{% 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 %}
