Encoding Special Characters For Outlook HTML Email

Posted by n0chi on Stack Overflow See other posts from Stack Overflow or by n0chi
Published on 2010-03-24T17:58:00Z Indexed on 2010/03/24 18:03 UTC
Read the original article Hit count: 780

Filed under:
|
|
|

I have an asp.net / C# page which takes a comment, and then emails that comment. Sometimes when the user enters "&" in the comment, the comment is being truncated. So for example if the comment is "test & test" the email only sends out "test ".

I have tried HttpUtility.HtmlEncode - but it looks like the issue is on the outlook side and not on the C# side.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about outlook