Alerting - Mail template enhancements

How to format the alert message body with HTML tags and css styles. Basically, i would like to showcase my alert response “hits” in Table format with some styles.

However, when i write HTML tag, it is printed directly in the mail content, instead of rendering the html tag).

1 Like

Had a similar problem with slack, so I created a custom webhook to write the content of the json to send to the API
In the case of the email maybe you can use something like Mandril, also can create templates

and in the body of the trigger write something like

{
    "message": {
        "html": "<p>Example HTML content</p>",
        "text": "Example text content"
    }
}

Slack used markdown format.
Ex: <http://www.foo.com|This message is a link>
https://api.slack.com/reference/surfaces/formatting#linking-urls