Monday, March 26, 2012

System.Net.Mail issue - html AlternateView losing period in href

I have setup some code that grabs HTML from our database and attaches it as an AlternateView
--
AlternateView htmlView = AlternateView.CreateAlternateViewFromString(htmlSB.ToString(),Encoding.GetEncoding(0),MediaTypeNames.Text.Html);
--
I am dumping it to a text file locally. In the instance where there is a wrap in the body which contains an a href, and there is a period just AFTER the wrap, it drops the period
ex of the physical email file:
blah blah blah blah <a href="http://links.10026.com/?link=http://forums.asp=
.net>Asp Forums</a>blah blah blah blah bla=
(note the period on the new line)
shows up as -
blah blah blah blah <a href="http://links.10026.com/?link=http://forums.aspnet>Asp Forums</a>blah blah blah blah bla
(note the missing period between asp and net)
Any ideas?
thanks
m

Since I have not gotten a response at all, should I assume that this is an unfixable bug and abandon system.net.mail?

thanks

0 comments:

Post a Comment