sargue / mailgun

Java library to easily send emails using the Mailgun service
MIT License
152 stars 40 forks source link

How to send HTML with thymeleaf #35

Closed kopax closed 4 years ago

kopax commented 4 years ago

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?

sargue commented 4 years ago

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

kopax commented 4 years ago

Indeed, I did, thank you