sargue/mailgun

How to send HTML with thymeleaf

Closed this issue · 2 comments

kopax commented

Hi @sargue,

I am importing a String that is an HTML builded with thymeleaf, I'd like to send the email with HTML content, but not sure how I can do, I have tried to use Body.builder().p(myHtml), also tried .text(myHtml), I always end up with text.

How can I send the html myself?

You closed the issue, I guess you found the html() method. :-)

kopax commented

Indeed, I did, thank you