# Watcher email attachment

**URL:** <https://discuss.elastic.co/t/watcher-email-attachment/164448>\
**Category:** Elasticsearch\
**Created:** [January 16, 2019, 11:23am UTC](https://discuss.elastic.co/t/watcher-email-attachment/164448 "2019-01-16T11:23:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [January 16, 2019, 11:23am UTC](https://discuss.elastic.co/t/watcher-email-attachment/164448/1 "2019-01-16T11:23:22Z")

</div>

Hi All,

I have created a watcher where the action is to send an email. A request came to me asking: Is it possible to use a date in the filename?

The receiver would like to see attachment-20190111.pdf

Can I use mustache syntax in the attachment name?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [January 18, 2019, 10:42am UTC](https://discuss.elastic.co/t/watcher-email-attachment/164448/2 "2019-01-18T10:42:33Z")

</div>

Hey,

sorry, this is currently not possible, as the attachment is treated as a static value.

--Alex

---

<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:** [February 15, 2019, 10:42am UTC](https://discuss.elastic.co/t/watcher-email-attachment/164448/3 "2019-02-15T10:42:34Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
