If you have to send a lot of mail from your java application, or send the same body email text everytime (for example forgot password, forgot username, etc.) you can use velocity template to make the email creation easy. Velocity template is just like an html file that is placed in a folder that can