File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes creating mail using xml and xsl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "creating mail using xml and xsl" Watch "creating mail using xml and xsl" New topic

creating mail using xml and xsl

Vinay Singh
Ranch Hand

Joined: Dec 15, 2004
Posts: 174
I have to send email to customers after they have finished their shopping.
It consists of list of items, total, address etc.
I have created a xsl for that and then want to add xml data to that xsl to generate the html email.
What is the best way to achieve this ?
Or is there a different approach to generate html email ?
I am using java Mail API


Technical quiz and interview questions   SCJP 6 mock practice test
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
Create html string out of the xsl transformation of your XML. Use that HTML String as the body of your email and you should be good to go.

Amit Tank
Linked In
I agree. Here's the link:
subject: creating mail using xml and xsl
It's not a secret anymore!