0 votes

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="[email protected]", recipent="[email protected]")
message_sender.send(sender="", recipient="", subject="", message="")

Thanks a lot!


asked by

1 Answer

+1 vote
Best answer

Hi Romain, 

You can use HTML formatting this way:

sender = scenario.get_message_sender(channel_id="my_channel_id") 
sender.set_params(sender="[email protected]", 
                recipient="[email protected]", 
html_message="<b>All is good</b>"

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


answered by
selected by
*happy dance*
991 questions
1,024 answers
3,140 users

┬ęDataiku 2012-2018 - Privacy Policy