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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Alpha549
Creator II
Creator II

tSendMail : insert an image using img HTML tag

Hello everyone,

I'm using a tSendMail to send an e-mail. In its advanced configuration, it's set on HTML MIME.

In the message I tried just with that :

"<img src='C:/Users/THE USER/Desktop/banner.jpg' alt='alt'>"

The file is on my desktop. However when the e-mail is sent, I only get the "alt"....

Is it the right way to display an image in the body of the message ?

Thank you for your help !

Labels (2)
1 Solution

Accepted Solutions
gjeremy1617088143

HI, I think you have to upload your image to a server and set the url of the image in the src.

or it seems you could also send your img as base 64.

ex : img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAADSCAMAAABThmYtAAAAXVB" alt="img" /

but not all mail client support it.

Send me Love and Kudos

View solution in original post

2 Replies
gjeremy1617088143

HI, I think you have to upload your image to a server and set the url of the image in the src.

or it seems you could also send your img as base 64.

ex : img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAADSCAMAAABThmYtAAAAXVB" alt="img" /

but not all mail client support it.

Send me Love and Kudos

Alpha549
Creator II
Creator II
Author

THANKS A LOT !

It works. Indeed, base64 images are not supported by all clients...

 

TOPIC SOLVED 🙂