I want to send a HTML email using HTML template. I would like to just replace some value's from that HTML template. Any idea how to achieve this?
+2
A:
Place place holders in the HTML content with {0},{1} etc and use String.format() to replace it.
Anuraj
2009-11-20 11:38:22
+2
A:
If your needs are more complex than can be achieved with @Anuraj's suggestion then I'd suggest looking at XSLT - you package your data as a lump of XML and transform the XML into whatever (HTML in this case) using an XSLT template.
Support in .NET for this kind of transformation is excellent and once you have got over the initial challenges (XSLT is different) you will have added a very capable set of tools to your toolkit.
Murph
2009-11-20 11:53:06
+1
A:
This question has been answered here before:
http://stackoverflow.com/questions/620265/can-i-set-up-html-email-templates-in-c-on-asp-net
Alison R.
2009-11-20 14:50:01