i have to make a auto-mailing system in java,in which mails send in form of HTML dynamic table and the mail attributes like TO,CC,subject,b ody message all are present in the database.The system is like that only the entries of the users should be mailed to the managers of that department in an HTML table which should be dynamic,please help be by any suggestion or by providing the code.It is an Escalation mail matrix system.
escalation matrix
Collapse
X
-
Tags: None
-
Is this homework or an assignment from your manager? Unfortunately we don't supply free code for nothing and you haven't provided any code to work with. Is it a question of where to start or do you have an error? What I would do is make sure that I understand exactly what the problem is that I'm trying to solve. -
actually my code is in core java and i have to make the html template dynamic so that only desired data can be able to mail. i am not be able to create the dynamic html template....it is an homework question.:) i am able to send the mail but problem is html table which is not dynamic so it is sending blank row after the dataComment
-
You can use javascript to fill in the data into your "static" HTML template on the client side, giving you the dynamic you need.
Just create a JSON array from the data inside the database and then a javascript function which is called "onLoad" (or executed by a user clicking at a name/button) will search the desired data in the JSON array and fill it into your HTML template.Comment
Comment