This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

creating mail using xml and xsl  RSS feed

 
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
Boost this thread!