Hi,
As a part of our department requirements, we need to send out HTML emails that are predefined.
These templates are stored in a table.
Please consider the below case
<HTML>
<TR>
<TD>
#NAME#
</TD>
</TR>
</HTML>
Value for the tag #NAME# needs to be picked up from the database and the HTML template populated accordingly.
Could you please advise, on how this can be achieved with Java ? Any sample code would be highly appreciated.
I have the code ready to send out emails. Only worry is to populate the HTML templates with the values form the database.
Regards
http://velocity.apache.org/engine/devel/user-guide.html