Sending HTML template base email using spring boot.
Hello Geeks, hope you all are doing well these days. Recently i was working in my project where a case came, where I had to send an email with attachment in specific format(basically template based). So, after doing a quick research I came up with solution, In this particular blog post I am going to share the spring boot plugin i.e. free marker, to send template based multi lingual email. So, first things first. Initiate a blank spring boot application with some of dependencies listed below: 1. web dependencies spring-boot-starter-web 2. jackson dependencies jackson-dataformat-xml 3. lombok dependencies lombok 4. mail dependencies spring-boot-starter-mail 5. free marker dependencies spring-boot-starter-freemarker Here is the effective pom.xml, you can also use gradle instead of maven. pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst