Web.Config:
<appSettings>
<add key="html1" value="This is <br /> HTML email"/>
</appSettings>
I'm trying to generate HTML formatted email. Prior to putting data in Web.Config I had both text and HTML emails formatted correctly.
In code-behind:
StringBuilder emailMessageString = new StringBuilder();
emailMessageString.Append(WebConfigurationManager.AppSettings["html1"].ToString());
Output in HTML email:
This is <br /> HTML email
Expected output in HTML email:
This is
HTML email
UPDATE - 02-19-2015
It looks like code I wrote to generate HTML email is not working correctly and had previously posted the code in this question (in my own answer). Can someone spot what I'm doing wrong as it looks like only the text emails are working:
Correct Syntax for Generating HTML Email using AlternateView