insert html code in the message of the tSendMail component

One Star

insert html code in the message of the tSendMail component

Good morning,
I would like to insert html code in the field 'message' of a tSendMail component. How can I do?
thank you in advance
Community Manager

Re: insert html code in the message of the tSendMail component

Hello
I would like to insert html code in the field 'message' of a tSendMail component. How can I do?

It is impossible to type in the message with html code format. You can type it in a file and send it as a attachment file.
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: insert html code in the message of the tSendMail component

Hi Shong,
Is writing HTML code in message field of tsendMail not possible even in TIS version 4.1?
Thanks,
Brevis
One Star

Re: insert html code in the message of the tSendMail component

Hi,
In advanced parameterof tsendMail you can choose html. Then I suggest you to create un context.body variable and use a tjava to put your HTML message in there. Then in your tSendMail component message put your context.body. This is how I do and it works.
One Star

Re: insert html code in the message of the tSendMail component

But if your message doesn't contain any "dynamic" variable you can just put the html code in the message field.
One Star

Re: insert html code in the message of the tSendMail component

Thank you Or3l for that quickest reply! My plan is that the whole message is an html string from the global map, is that possible too?
Like this: (String)globalMap.get("MESSAGE")
Where MESSAGE has value for example: "<html><body><h3>Test</h3></body></html>"
Thanks!
Kurt
One Star

Re: insert html code in the message of the tSendMail component

Sry for responding so late. Yes you can use it like this ^^