Thanks for the suggestions...
I tried:
Dim body As String = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD
W3HTML//EN""><HTML><HEAD></HEAD><BODY>Test<BR>Testing</BODY></HTML>"
body = XmlConvert.EncodeName(body)
"<mail:htmldescription>" & body & "</mail:htmldescription>"
Setting the httpmail and mailheader content to text/html and it posted but
when viewed in the calendar it was still encoded
_x003C__x0021_DOCTYPE_x0020_HTML_x0020_PUBLIC_x0020__x0022_-_x002F__x002F_W3C_x002F__x002F_DTD_x0020_W3HTML_x002F__x002F_EN_x0022__x003E__x003C_HTML_x003E__x003C_HEAD_x003E__x003C__x002F_HEAD_x003E__x003C_BODY_x003E_Test_x003C_BR_x003E_Testing_x003C__x002F_BODY_x003E__x003C__x002F_HTML_x003E_
I tried:
Dim body As String = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD
W3HTML//EN""><HTML><HEAD></HEAD><BODY>Test<BR>Testing</BODY></HTML>"
"<mail:htmldescription sql:use-cdata=""1"">" & body &
"</mail:htmldescription>"
after adding sql to the xml name space declarations and got a 400 bad
request error.
I tried:
"<mail:htmldescription><![CDATA[" & body & "]]></mail:htmldescription>"
the appointment posted but there was no text at all because I guess the
CDATA call here caused the XML parser to skip it.
Am I missing something in these implementations?
Thanks again,
Tom M.
Hello,
it works fine if you just replace the < and > chars with < and >.
And if you have any entities (like ) in your html code, you should
encode it as &nbsp;
Greetings,
Henning Krause [MVP]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)
> Thanks for the suggestions...
> I tried:
[quoted text clipped - 113 lines]
>> > Thanks again hope this helps elucidate the issue,
>> > Tom Majarov
Tmajarov - 06 Jun 2005 13:39 GMT
Works like a charm thanks for the advice.
Tom Majarov
> Hello,
> it works fine if you just replace the < and > chars with < and >.
[quoted text clipped - 126 lines]
> >> > Thanks again hope this helps elucidate the issue,
> >> > Tom Majarov
Breeze - 18 Apr 2007 21:26 GMT
would sth like this work:
string sBody = "<html><body><p>line1</p><p>line2</p></body></html>";
sBody.Replace("<", "<");
sBody.Replace(">", ">");
sBody.Replace("&", "&");
I fired WEBDAV to add appointments with sBody as body text, then nothing
shows up in my calenar.
> Hello,
> it works fine if you just replace the < and > chars with < and >.
[quoted text clipped - 126 lines]
> >> > Thanks again hope this helps elucidate the issue,
> >> > Tom Majarov
Henning Krause [MVP - Exchange] - 18 Apr 2007 22:14 GMT
Hello,
I suppose you replaced the smaller and greater chars with their entity
equivalent...
> sBody.Replace("<", "<");
It's not visible here... If not.. you must replace < with < and > with
>
Best regards,
Henning
> would sth like this work:
>
[quoted text clipped - 143 lines]
>> >> > Thanks again hope this helps elucidate the issue,
>> >> > Tom Majarov
utiq - 30 Apr 2007 19:52 GMT
You can resolve this probem with:
string sBody = "<html><body><p>line1</p><p>line2</p></body></html>";
sBody = HttpUtility.HtmlEncode(sBody);
and in the structure XML of WEbDav put
"<mail:htmldescription>" & sBody & "</mail:htmldescription>"
And your message sent with HTML format
> Hello,
>
[quoted text clipped - 155 lines]
> >> >> > Thanks again hope this helps elucidate the issue,
> >> >> > Tom Majarov