I'm trying to send an email with tsend mail using an HTML CSS template.
here's my job:
I tried to add this into my TjavaRow :
String msg = ((String)globalMap.getOrDefault("mailMsg", "<table><tr><th>Num de Chassis</th></tr>")); msg = msg + "<tr>" + "<td>" + Sortie.Num_Chassis + "</td>" + "</tr>";
but I'm getting this in my email :
Can you help with this ?
Solved! Go to Solution.
in theory - yes, but you need prepare HTML body before tSendMail
then use prepared variable as email body text
personally I - use prepared HTML text with few included variables (like name, account + etc) and attachment (csv or pdf)
so, first - prepare atttachment, then prepare text, and send email with attachments
I'm preparing my HTML body in tjavaRow! I'm just confused what do you mean by attachments! Do you mean I should Include the row that I want to print in my email in the file I attach?
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema
Pick up some tips and tricks with Context Variables