Re: How do I create an email message body by reading a document template and dynamically populating data in between the document?
Posted By:
Bhaskar_Mulpuri
Posted On:
Thursday, April 25, 2002 09:41 AM
I was able to figure this out. For those of u who are interested:
I am using a jsp page as the email message body. From my java program, I build a URL connection to the JSP page.
I send a serializable object thru the connection object's OutputStream and in the jsp page I get the object thru the request object's InputStream. This object will have the dynamic content.
The connection object's inputstream will give me the output of the jsp page, which is html.
I then use JavaMail to send this html info.
But I would like to hear if there are any better alternative solutions.