Issue
I'm using Thymeleaf with Spring Boot.
I'm trying to send a mail with a html template.
The mail is ok, the variable thymeleaf in the template are replace it's perfect, but, my only one problem is that the image are not displayed. It's just like if the image doen't exist.
The html template and the image ( Picture.png ) are on the same folder.
In the template I have try these multiples tries :
<img src="Picture.png" />
<img src="@{Picture.png}" />
<img th:src="|cid:${imageName}|" /> // by passing the "Picture.png" in the imageName variable
<img th:src="@{Picture.png}" />
But nothing is working, I need help thanks !
Solution
I answer my own question because I suceed to resolve the problem :
Just put like that <img src="cid:imageName"/>
in the html file
Answered By - Fizik26
Answer Checked By - Mary Flores (JavaFixing Volunteer)