Thymeleaf must be used instead Velocity. You can find an example on the thymeleaf site
http://www.thymeleaf.org/springmail.html