# Email alerting (html)

**URL:** <https://discuss.elastic.co/t/email-alerting-html/121406>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [February 25, 2018, 8:40pm UTC](https://discuss.elastic.co/t/email-alerting-html/121406 "2018-02-25T20:40:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pororo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pororo/32/27711_2.png) [@Pororo](https://discuss.elastic.co/u/Pororo)\
**Post date:** [February 25, 2018, 8:40pm UTC](https://discuss.elastic.co/t/email-alerting-html/121406/1 "2018-02-25T20:40:55Z")

</div>

I am not sure how to set body.html in email notification of watcher.  
Here is what I did, but when I received the email, it did not show the content of html. It only shows the link of html.

```
  "actions": {
    "email_admin": {
      "email": {
        "profile": "standard",
        "from": "Alerting<logic720@gmail.com>",
        "priority": "high",
        "to": [
          "echowu720@gmail.com"
        ],
        "subject": "Error Monitoring Report",
        "body": {
          "html": "http://www.cnblogs.com/dragonstreak_1/archive/2010/10/17/1853697.html"
        }
      }
    }
  }
```

---

<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:** [February 27, 2018, 12:48pm UTC](https://discuss.elastic.co/t/email-alerting-html/121406/2 "2018-02-27T12:48:17Z")

</div>

you have to write the HTML yourself in that field, using HTML tags.

---

<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:** [March 27, 2018, 12:48pm UTC](https://discuss.elastic.co/t/email-alerting-html/121406/3 "2018-03-27T12:48:29Z")

</div>

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