Is it possible to send custom reports as HTML?

Highlighted
rmnvncnt
Level 2
Is it possible to send custom reports as HTML?
Jump to solution

I'm currently using the message sender object from within custom Python scenario, but so far I can only send plain text messages. Is it possible to use HTML formating rather than plain text with this feature? I can't find the complete list of parameters for these functions in the documentation :




message_sender.set_params(sender="dss@company.com", recipent="data-scientists@company.com")
message_sender.send(sender="", recipient="", subject="", message="")


Thanks a lot!



Romain

0 Kudos
1 Solution

Accepted Solutions
Alex_Combessie Dataiker
Dataiker
Re: Is it possible to send custom reports as HTML?
Jump to solution

Hi Romain, 



You can use HTML formatting this way:




sender = scenario.get_message_sender(channel_id="my_channel_id")
sender.set_params(sender="dss@company.com",
recipient="your.email@company.com",
sendAsHTML=True)

html_message="<b>All is good</b>"

sender.send(subject="The scenario is doing well",
message=html_message)


 

View solution in original post

2 Replies
Alex_Combessie Dataiker
Dataiker
Re: Is it possible to send custom reports as HTML?
Jump to solution

Hi Romain, 



You can use HTML formatting this way:




sender = scenario.get_message_sender(channel_id="my_channel_id")
sender.set_params(sender="dss@company.com",
recipient="your.email@company.com",
sendAsHTML=True)

html_message="<b>All is good</b>"

sender.send(subject="The scenario is doing well",
message=html_message)


 

View solution in original post

rmnvncnt
Level 2
Re: Is it possible to send custom reports as HTML?
Jump to solution
*happy dance*
0 Kudos
Labels (3)