Library Requirement : velocity-1.7.jar Make template folder under resources and put following template vm file invoice_email.vm file content <html> <head> <style> *{margin:0; padding:0; outline:none} </style> </head> <body> <div style="background:#fcdd8c; padding:30px;"> <div style="background:#FFF; border-radius:15px; width:600px; padding:20px; margin:0 auto; box-shadow:0 1px 5px #000"> <p style="font:bold 14px/30px Tahoma, Geneva, sans-serif">Dear ${vp.salutation} ${vp.lastName},</p> <p style="font:normal 12px/20px Arial, Helvetica, sans-serif; margin-bottom:5px">Please find the attached invoice dated: ${vp.invoiceDate}. Please let us know if you have any question.</p> <p style="font:normal 12px/18px Arial, Helvetica, sans-serif; margin-bottom:20px">Thank