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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to inject html code into message of tSendMail

Hi ,
I downloaded a template of mail in html , but i don't know how to put it in the message section of the tSendMail component , i get many errors even when enclose it with "".
And how is can we add a logo ? or images ?
Thanks

Labels (2)
12 Replies
Anonymous
Not applicable
Author

This was just what I did it and worked really well, thanks!
seaferring
Contributor
Contributor

This is great, but that the tSendMail component has an HTML option and then makes you jump through hoops to do anything more complex than "Hello World" is a little disappointing.

pcristi
Contributor
Contributor

<!DOCTYPE html>
<html lang= "pt-br">
<html>
<head>
	<meta charset="UTF-8" author="Priscila Cristina"/>
<body>
	<header>
<img src="C:/Users/pcristi/Desktop/Projeto_Auditoria/Imagens/adp-logo-cabecalho.png"
<header>
<h3>Olá <b>"+context.Consultor+"</b>,</h3>
</br>
<p>Identificamos que na pasta do projeto número "+context.Id_Expert+"  não constam alguns documentos auditados:</p>
	<ul><li>Pasta Sharepoint: "+context.URL+" </li>
	<li>Tipo de Conversão:"+context.Tipo_Conversao+"</li>
	<li>Relatórios Ausentes:"+context.Relatorio1+"</li></ul>
<p>Por favor insira os documentos na pasta.</p> 

<p>Obrigada,</p> 
</br>
<footer id="assinatura">Equipe Dev-Talend</footer>
<style>
body {
		font-family: arial,sans-serif;
		font-size: 12pt;}
header {
	position:relative;
	width: 600px;}
h3 {
	color: #606060;}
p {
	text-align: justify;
	font-family: Microsoft YaHei UI Light;}
footer#assinatura {
font-family: Cooper Black;}
ul{
color: #606060;
font-family: arial now,sans-serif;
font-style: italic;}
</body>
</style>
</html>

Hi 

I know you have posted it a long time ago but until now ,in 2020, we are not so sure in how to make CSS work out with Talend.

Could you please help us with this matter? 

I have a simple HTML file to send by email but looks a nightmare makes it works.

Thank you in advance for your support.