# Add email attachment to message body?

**URL:** <https://discuss.elastic.co/t/add-email-attachment-to-message-body/27405>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [August 14, 2015, 2:48pm UTC](https://discuss.elastic.co/t/add-email-attachment-to-message-body/27405 "2015-08-14T14:48:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmccuk](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@dmccuk](https://discuss.elastic.co/u/dmccuk)\
**Post date:** [August 14, 2015, 2:48pm UTC](https://discuss.elastic.co/t/add-email-attachment-to-message-body/27405/1 "2015-08-14T14:48:56Z")

</div>

Hi,

Does anyone know if it's possible to add the message attachment to the "body" instead? And if it is, can you also pull out the fields you want like using grep on the content to remove all the stuff you don't need.

As these emails will end up with a support team so it would be really handy if the information was available at a glance instead of opening an attachment.

my email action:

```
"actions" : {
  "send_email" : {
    "email" : {
      "to" : "me@me.com ",
      "subject" : "Event Warning from Watcher",
      "body" : "Event Warning : Please see attached",
      "attach_data" : true
    }
  }
 }

```

Thanks for your help.

Regards

Dennis

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:48pm UTC](https://discuss.elastic.co/t/add-email-attachment-to-message-body/27405/2 "2017-07-06T13:48:58Z")

</div>


