Tuesday, 25 March 2008

Generating HTML emails using c#.net

This missed me for days. My code was generating html which i placed into the body of an email. Problem was that the html was appearing as, well, html rather as text even though i had set the content-type as text/html. Found out this weekend that i was missing a single line of code;

MailMessage.isBodyHTML = true;



No comments: