Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
pawe84
Creator
Creator

tSendMail and tFileInputRaw, how keep html banner while sending?

Hi everyone,

I have following issue: There's a storage where html documents and html files folder are created.

E.g.:

Doc123456.html and folder Doc123456.html_files where the banner for the html file is located.

When now tFileInputRaw is used to call the html file in order to use it in  tSendMail it will use the html file, sending it to the recipient but the header logo/banner is not included because it was stored in folder Doc123456.html_files.

How to include the logo element?

pawe84_0-1716548154755.png

The header logo is always the same, could I use in tSendMail "Other header"?

If yes how setup another header? 

pawe84_1-1716548473030.png

Thanks for any hints.

Labels (1)
  • v8.x

4 Replies
Shicong_Hong
Support
Support

Hello

I don't know what the header logo/banner data looks like in Doc123456.html_files. My opinion is to use another tFileInputRaw to read the Doc123456.html_files as a string and then extract the logo/banner data from it, store these data into context variables for used later on tSendMail.

Regards

Shicong

pawe84
Creator
Creator
Author

The banner has the size of 711x94 px, it's just a png.

How I can call both  global strings in tSendMail?

If I insert it like this

pawe84_1-1716795229017.png

The mail won't show me the graphic only this

pawe84_2-1716795274846.png

 

 

 

 

 

pawe84
Creator
Creator
Author

tFileInputRaw for the png has to be in mode "bytes array" isn't it?

pawe84_0-1716796377866.png

 

But what to insert in tJavaRow?

I tried the following statement but it doesn't work, I'll get an error

globalMap.put("htmlContent_header[]", row3.content);

byte htmlContent_header[] = (byte)input_row.content;

Shicong_Hong
Support
Support

Sorry, @pawe84 I'm not an HTML expert. See if anyone else can help you with this.