Talend Connect
Virtual Summit
JOIN US!
And visit the Customer
& Community Lounge.
May 27-28, wherever you are.

insert html code in the message of the tSendMail component

Highlighted
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
Highlighted
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
Highlighted
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
Highlighted
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.
Highlighted
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.
Highlighted
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
Highlighted
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 ^^

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog