# Cant see html format in my watcher's mail

**URL:** <https://discuss.elastic.co/t/cant-see-html-format-in-my-watchers-mail/244406>\
**Category:** Elasticsearch\
**Created:** [August 10, 2020, 1:06pm UTC](https://discuss.elastic.co/t/cant-see-html-format-in-my-watchers-mail/244406 "2020-08-10T13:06:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandros888](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Alexandros888](https://discuss.elastic.co/u/Alexandros888)\
**Post date:** [August 10, 2020, 1:06pm UTC](https://discuss.elastic.co/t/cant-see-html-format-in-my-watchers-mail/244406/1 "2020-08-10T13:06:08Z")

</div>

Hello,

I have created an advanced watcher alert that works and has the following email section:

```
"actions": {
    "send_email": {
      "email": {
        "profile": "standard",
        "to": [
          "alexandros.ananikidis@sag-ag.ch"
        ],
        "subject": "[CH PROD] Connect CH Customer Simulation Failed",
  "body": {
    "html": """<h1><font color="red">Elastic results are the following</font></h1>
    
<table border='1' style='font-family:sans-serif;font-size:13px'>
<table>
  <tr>
    <th>host</th>
    <th>level</th>
  </tr>
{{#ctx.payload.hits.hits}}
<tr>
    <td>{{_source.host}}</td>
    <td>{{_source.level}}</td>
</tr>
{{/ctx.payload.hits.hits}}
</table>"""
  }
      }
    }
  }

```

Nevertheless when i get the email notification of my alert i dont see my results in a table format with borders as i wanted and also the color in the text "Elastic results are the following"  
is not red

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/b/db39e234ac49b527aa883082ad42ef6d47e17931.png)

Also in elasticsearch yml file i have specified the option:

```
xpack.notification.email.html.sanitization:
    allow: _tables, _blocks, _formatting, _links, _styles

```

What shall i change in my alert body to make that work with table borders and colors?

---

<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:** [September 7, 2020, 1:06pm UTC](https://discuss.elastic.co/t/cant-see-html-format-in-my-watchers-mail/244406/2 "2020-09-07T13:06:35Z")

</div>

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