tSendMail context variables

One Star

tSendMail context variables

I have a Talend Job the reads in an external html using tInputFileRow and tJavaRow into a variable and then I can put the variable into the message body of tSendMail and it mostly works.  The problem is I have context variables inside of the html that is read in and they are not getting reference as a context variable but rather as another string value, so instead of putting the value for context.Email_Image_Server is read it as  a string. Is there a way to embed variables in an external html file to make the email contents dynamic?
Moderator

Re: tSendMail context variables

Hi,
The problem is I have context variables inside of the html that is read in and they are not getting reference as a context variable but rather as another string value, so instead of putting the value for context.Email_Image_Server is read it as  a string.

Could you please show us your message body of tSendMail?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

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