# Scheduled CSV Report - Email Body

**URL:** <https://discuss.elastic.co/t/scheduled-csv-report-email-body/366436>\
**Category:** Kibana\
**Tags:** elastic-stack-reporting\
**Created:** [September 11, 2024, 9:57pm UTC](https://discuss.elastic.co/t/scheduled-csv-report-email-body/366436 "2024-09-11T21:57:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)\
**Post date:** [September 11, 2024, 9:57pm UTC](https://discuss.elastic.co/t/scheduled-csv-report-email-body/366436/1 "2024-09-11T21:57:27Z")

</div>

Hello I created a watcher that sends a csv to email.

Here's the watcher:

```auto
{
  "trigger" : {
    "schedule": {
      "interval": "1h"
    }
  },
  "actions" : {
    "email_admin" : { 
      "email": {
        "to": "<redacted>",
        "subject": "Error Monitoring Report",
        "attachments" : {
          "error_report.csv" : {
            "reporting" : {
              "url": "<redacted>", 
              "retries":40, 
              "interval":"15s", 
              "auth":{ 
                "basic":{
                  "username":"elastic",
                  "password":"changeme"
                }
              }
            }
          }
        }
      }
    }
  }
}

```

My question is how can I add to the email body?  
This is how it looks on the recieving end:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/c/1c878ad414e7335c0436e977208678765583698a.png)

I want to add additional context to the email body

---

<div class="post-metadata">

**Author:** ![ashishtiwari1993](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashishtiwari1993/32/135241_2.png) [@ashishtiwari1993](https://discuss.elastic.co/u/ashishtiwari1993)\
**Post date:** [September 12, 2024, 4:56am UTC](https://discuss.elastic.co/t/scheduled-csv-report-email-body/366436/2 "2024-09-12T04:56:20Z")

</div>

Hi @erikg, You can set [body](https://www.elastic.co/guide/en/elasticsearch/reference/current/actions-email.html#configuring-email-actions) field in action type `email`.

```auto
"actions" : {
  "send_email" : { 
    "email" : { 
      "to" : "username@example.org", 
      "subject" : "Watcher Notification", 
      "body" : "{{ctx.payload.hits.total}} error logs found" 
    }
  }
}

```

the `body` field is default to plain text. For HTML, you can use `body.html`

```auto
body:{
    "html":"<b>hi</b>"
}

```
