# Colors in Elastic Detections Alert Emails

**URL:** <https://discuss.elastic.co/t/colors-in-elastic-detections-alert-emails/267155>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [March 13, 2021, 5:40pm UTC](https://discuss.elastic.co/t/colors-in-elastic-detections-alert-emails/267155 "2021-03-13T17:40:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![willemdh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/willemdh/32/16922_2.png) [@willemdh](https://discuss.elastic.co/u/willemdh)\
**Post date:** [March 13, 2021, 5:40pm UTC](https://discuss.elastic.co/t/colors-in-elastic-detections-alert-emails/267155/1 "2021-03-13T17:40:55Z")

</div>

Hello,

Can we use colors in Elastic Detections Alert Emails?

Willem

---

<div class="post-metadata">

**Author:** ![Patrick\_Mueller](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patrick_mueller/32/109425_2.png) [@Patrick\_Mueller](https://discuss.elastic.co/u/Patrick_Mueller)\
**Post date:** [March 15, 2021, 11:14pm UTC](https://discuss.elastic.co/t/colors-in-elastic-detections-alert-emails/267155/2 "2021-03-15T23:14:37Z")

</div>

Not that I know of. The message body for emails is rendered as markdown into html, but we don't allow any HTML markup, since that can be a security issue.

If we did allow HTML, presumably you could wrap text in `<span>`'s and `<div>`'s and style directly in the elements or indirectly via classes and `<style>` elements.

I don't believe we have had explicit requests for this, so feel free to open a new feature request issue - [https://github.com/elastic/kibana/issues/new/choose](https://github.com/elastic/kibana/issues/new/choose) - add label "Team:Alerting Services" so we'll get notified about it. I imagine if we did something like that, it would be an opt-in per usage of the email connector, to keep the security surface smaller.

Note that you should be able to include external images via the usual markdown route:

```markdown
![Alt Text](url)

```

So you _could_ add some colored icons or similar, that way ...

---

<div class="post-metadata">

**Author:** ![willemdh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/willemdh/32/16922_2.png) [@willemdh](https://discuss.elastic.co/u/willemdh)\
**Post date:** [March 16, 2021, 11:05am UTC](https://discuss.elastic.co/t/colors-in-elastic-detections-alert-emails/267155/3 "2021-03-16T11:05:42Z")

</div>

Hello @Patrick_Mueller ,

Thanks for your answer. We have been using watches for alert emails for years, where we are able to use html and css to format our emails. For example:

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

We would love to be able again to format the SIEM email alerts in our housestyle instead of plain simple text, just like we are doing with watch email alerts for years.

Created [Allow colors in Kibana alerting emails. · Issue #94678 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/94678)

Can I give tags / labels to this issue myself? if so please tell me how. 🙂 and I'll add it.

Grtz

Willem

---

<div class="post-metadata">

**Author:** ![Patrick\_Mueller](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patrick_mueller/32/109425_2.png) [@Patrick\_Mueller](https://discuss.elastic.co/u/Patrick_Mueller)\
**Post date:** [March 16, 2021, 12:05pm UTC](https://discuss.elastic.co/t/colors-in-elastic-detections-alert-emails/267155/4 "2021-03-16T12:05:59Z")

</div>

woops, sorry, forgot you need to be part of the GH org to add labels - thanks for posting, I added the labels / project for us to track. Thanks!

---

<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:** [April 13, 2021, 12:06pm UTC](https://discuss.elastic.co/t/colors-in-elastic-detections-alert-emails/267155/5 "2021-04-13T12:06:41Z")

</div>

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