Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating mail using xml and xsl

 
Vinay Singh
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

Thanks
 
Amit M Tank
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic