Replacing HTML parameters with Java
Posted on 2011-03-06
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
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.