I would like to send html emails from my application, using Thymeleaf engine. I can send html email, the problem comes when i want to bind to the template, let's say
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head></head>
<body>
<span th:text="${message}"></span>
</body>
</html>
${message} comes from a controller and it's and internationalized message, so i get it in this way
String message = messageSource.getMessage("email_message", null, locale);
And email_message is in my messages_xx.properties files, depending on the locale
Is it possibile to add html tags in message?
If i write something like
Hello <b>User</b><br/>Welcome!
in the email i get this message literally, as the tags are not parsed