Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
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
It is sorta covered in the JavaRanch Style Guide.
subject: creating mail using xml and xsl