Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

sending an HTML CSS formated with tsendmail

I'm trying to send an email with tsend mail using an HTML CSS template.

 

here's my job: 

0683p000009M2OJ.png

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 :

0683p000009M2dD.png

Can you help with this ?

Labels (3)
1 Solution

Accepted Solutions
vapukov
Master II
Master II

Hi,

 

Talend of course not the best tool for sending email 🙂

but something possible

 

do you enable HTML format?

0683p000009M1v8.png

 

 

 

View solution in original post

4 Replies
vapukov
Master II
Master II

Hi,

 

Talend of course not the best tool for sending email 🙂

but something possible

 

do you enable HTML format?

0683p000009M1v8.png

 

 

 

Anonymous
Not applicable
Author

Now It's working, 

 

But I need it to send all the rows in one mail, is it possible and if so how ?

vapukov
Master II
Master II

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

Anonymous
Not applicable
Author

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?