Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Tue, 18 Dec 2007 11:07:28 -0000,    group: microsoft.public.platformsdk.mapi        back       


RTF message bodies with embedded HTML   
Hi Guys

I'm still struggling with HTML message bodies in my MAPI store provider in 
Outlook 2003.

I've tried using PR_RTF_COMPRESSED. This works provided that the body is 
pure RTF and not HTML encoded to RTF.

If I have a PR_HTML body stored as a stream, Outlook 2003 reads the the 
first 4096 bytes of the stream and then proceeds to read the plaintext body.

If I have the PR_RTF_COMPRESSED property this works provided that the body 
is pure RTF. If I place an HTML converted to an RTF body, Outlook 2003 reads 
the whole thing and then proceeds to read the plaintext body. I just don't 
get this. For some reason HTML bodies are not working with Outlook 2003 with 
my store whether they're plain HTML or HTML encoded RTF I've set the 
InetMailOverrideFormat and the MSG_EDITOR_FORMAT flags. If I hit forward or 
reply to a message in my store, the resulting email renders in HTML. This is 
using the default IPM.Note message class.

All of this works perfectly with Outlook 2007 for some reason. HTML renders 
wonderfully.

I'm wondering whether this is a security issue relating to HTML message 
bodies or something. I don't have any scripts or anything in my bodes. Even 
a simple case such as <html><body><b>Bold</b></body></html> will not work in 
OL2003. Outlook 2007 uses Word 2007's HTML rendering engine instead of IE so 
this could be part of the problem.

Cheers
Win.
date: Tue, 18 Dec 2007 11:07:28 -0000   author:   Windoze

Re: RTF message bodies with embedded HTML   
Hi

I also notice that my messages don't have an HTML editor property in the OOM 
Inspector object. How would I set this property for my message store?

Cheers
Win

"Windoze"  wrote in message 
news:ed3zuYWQIHA.5184@TK2MSFTNGP05.phx.gbl...
> Hi Guys
>
> I'm still struggling with HTML message bodies in my MAPI store provider in 
> Outlook 2003.
>
> I've tried using PR_RTF_COMPRESSED. This works provided that the body is 
> pure RTF and not HTML encoded to RTF.
>
> If I have a PR_HTML body stored as a stream, Outlook 2003 reads the the 
> first 4096 bytes of the stream and then proceeds to read the plaintext 
> body.
>
> If I have the PR_RTF_COMPRESSED property this works provided that the body 
> is pure RTF. If I place an HTML converted to an RTF body, Outlook 2003 
> reads the whole thing and then proceeds to read the plaintext body. I just 
> don't get this. For some reason HTML bodies are not working with Outlook 
> 2003 with my store whether they're plain HTML or HTML encoded RTF I've set 
> the InetMailOverrideFormat and the MSG_EDITOR_FORMAT flags. If I hit 
> forward or reply to a message in my store, the resulting email renders in 
> HTML. This is using the default IPM.Note message class.
>
> All of this works perfectly with Outlook 2007 for some reason. HTML 
> renders wonderfully.
>
> I'm wondering whether this is a security issue relating to HTML message 
> bodies or something. I don't have any scripts or anything in my bodes. 
> Even a simple case such as <html><body><b>Bold</b></body></html> will not 
> work in OL2003. Outlook 2007 uses Word 2007's HTML rendering engine 
> instead of IE so this could be part of the problem.
>
> Cheers
> Win.
>
date: Tue, 18 Dec 2007 13:05:51 -0000   author:   Windoze

Re: RTF message bodies with embedded HTML   
Hi Guys

I got HTML message bodies to work in Outlook 2003 at last thanks to this 
article:

http://blogs.msdn.com/pcreehan/archive/2008/01/10/help-outlook-2003-doesn-t-display-my-html-body.aspx?CommentPosted=true#commentmessage

It turns out that my entry ID was longer than 100 characters. OL2003 
generates a URL for IE to render the message with and when the entry ID is 
longer thana  100 characters, this causes a failure.

Ah well.

Cheers
Win


"Windoze"  wrote in message 
news:ed3zuYWQIHA.5184@TK2MSFTNGP05.phx.gbl...
> Hi Guys
>
> I'm still struggling with HTML message bodies in my MAPI store provider in 
> Outlook 2003.
>
> I've tried using PR_RTF_COMPRESSED. This works provided that the body is 
> pure RTF and not HTML encoded to RTF.
>
> If I have a PR_HTML body stored as a stream, Outlook 2003 reads the the 
> first 4096 bytes of the stream and then proceeds to read the plaintext 
> body.
>
> If I have the PR_RTF_COMPRESSED property this works provided that the body 
> is pure RTF. If I place an HTML converted to an RTF body, Outlook 2003 
> reads the whole thing and then proceeds to read the plaintext body. I just 
> don't get this. For some reason HTML bodies are not working with Outlook 
> 2003 with my store whether they're plain HTML or HTML encoded RTF I've set 
> the InetMailOverrideFormat and the MSG_EDITOR_FORMAT flags. If I hit 
> forward or reply to a message in my store, the resulting email renders in 
> HTML. This is using the default IPM.Note message class.
>
> All of this works perfectly with Outlook 2007 for some reason. HTML 
> renders wonderfully.
>
> I'm wondering whether this is a security issue relating to HTML message 
> bodies or something. I don't have any scripts or anything in my bodes. 
> Even a simple case such as <html><body><b>Bold</b></body></html> will not 
> work in OL2003. Outlook 2007 uses Word 2007's HTML rendering engine 
> instead of IE so this could be part of the problem.
>
> Cheers
> Win.
>
date: Mon, 21 Jan 2008 11:59:16 -0000   author:   Windoze

Re: RTF message bodies with embedded HTML   
Cool! That's great to know!

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

"Windoze"  wrote in message 
news:u7W5MUCXIHA.5448@TK2MSFTNGP04.phx.gbl...
> Hi Guys
>
> I got HTML message bodies to work in Outlook 2003 at last thanks to this 
> article:
>
> http://blogs.msdn.com/pcreehan/archive/2008/01/10/help-outlook-2003-doesn-t-display-my-html-body.aspx?CommentPosted=true#commentmessage
>
> It turns out that my entry ID was longer than 100 characters. OL2003 
> generates a URL for IE to render the message with and when the entry ID is 
> longer thana  100 characters, this causes a failure.
>
> Ah well.
>
> Cheers
> Win
>
>
> "Windoze"  wrote in message 
> news:ed3zuYWQIHA.5184@TK2MSFTNGP05.phx.gbl...
>> Hi Guys
>>
>> I'm still struggling with HTML message bodies in my MAPI store provider 
>> in Outlook 2003.
>>
>> I've tried using PR_RTF_COMPRESSED. This works provided that the body is 
>> pure RTF and not HTML encoded to RTF.
>>
>> If I have a PR_HTML body stored as a stream, Outlook 2003 reads the the 
>> first 4096 bytes of the stream and then proceeds to read the plaintext 
>> body.
>>
>> If I have the PR_RTF_COMPRESSED property this works provided that the 
>> body is pure RTF. If I place an HTML converted to an RTF body, Outlook 
>> 2003 reads the whole thing and then proceeds to read the plaintext body. 
>> I just don't get this. For some reason HTML bodies are not working with 
>> Outlook 2003 with my store whether they're plain HTML or HTML encoded RTF 
>> I've set the InetMailOverrideFormat and the MSG_EDITOR_FORMAT flags. If I 
>> hit forward or reply to a message in my store, the resulting email 
>> renders in HTML. This is using the default IPM.Note message class.
>>
>> All of this works perfectly with Outlook 2007 for some reason. HTML 
>> renders wonderfully.
>>
>> I'm wondering whether this is a security issue relating to HTML message 
>> bodies or something. I don't have any scripts or anything in my bodes. 
>> Even a simple case such as <html><body><b>Bold</b></body></html> will not 
>> work in OL2003. Outlook 2007 uses Word 2007's HTML rendering engine 
>> instead of IE so this could be part of the problem.
>>
>> Cheers
>> Win.
>>
>
>
date: Mon, 21 Jan 2008 19:40:05 -0700   author:   Dmitry Streblechenko

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us