Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Include HTML (Content-Type: text/html) in email destination. #324

Closed
Sampathreddygopireddy118 opened this issue Dec 10, 2020 · 3 comments
Closed
Labels
backlog We have not started working on this enhancement New feature or request

Comments

@Sampathreddygopireddy118
Copy link

Sampathreddygopireddy118 commented Dec 10, 2020

Is your feature request related to a problem? Please describe.
currently email destination only supports (plain/text).

Describe the solution you'd like
It is really good to have the (Content-Type: text/html) in email destination.

Describe alternatives you've considered
Currently I using custom webhook destination for email notification.

@anjanaasok
Copy link

@Sampathreddygopireddy118 can you share the custom webhook that you created, How did you pass the context over to webhoook. DO we pass the ctx object in the URL of webhook

@Sampathreddygopireddy118
Copy link
Author

I was able to do the HTML format for email using custom webhook (destination as jenkins (generic-webhook-trigger)). Below are the steps if someone wants to do it.
Steps:

Message info in opendistro alerting write your message including painless script and include html tags.
create a free-style jenkins job -> enable the generic webhook trigger-> provide the variable to receive text format from kibana (custom webhook).
enable/create execute shell in Build, and write the incoming text (variable assigned in generic webhook) to a file with html extention (echo $variable > email.html).
enable editable email notification in your post build. Follow the steps from the document below.
https://dzone.com/articles/jenkins-convert-excel-data-to-tabular-format-and-s
Hope this helps. Let me know if you need any other details. My email: [email protected]

@qreshi
Copy link
Contributor

qreshi commented Feb 18, 2022

Closing in favor of opensearch-project/notifications#495

@qreshi qreshi closed this as completed Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backlog We have not started working on this enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants