Hi, if you are using the "email action" you should check out the documented attributes:
body : The body of the email. When this field holds a string, it will default to the text body of the email. Set as an object to specify either the text or the html body or both (using the fields below
body.text : The plain text body of the email. The body can be static text or contain Mustache templates.
body.html : The html body of the email. The body can be static text or contain Mustache templates. This body will be sanitized to remove dangerous content such as scripts. This behavior can be disabled by setting
xpack.notification.email.html.sanitization.enabled: false in
If you are using
body, you can try using