Hello,

The Thymeleaf project has just published a new article on how to send rich HTML email from a Spring application, using Thymeleaf as a template engine for prototyping these emails.

The article explains the basics of sending email with Spring (no matter the templating technology), and covers three scenarios:

  • Simple HTML email
  • HTML email with attachments
  • HTML email with inlined images (not attached, but displaying inside the message)


It also includes a fully-working example application with source code you can use as a base for your own projects.

Here it is: http://www.thymeleaf.org/springmail.html

Regards,
Daniel.