BodyFormat property was introduced in Outlook 2002. In the previous version
of Outlook you will need to read the RTF body (Extended MAPI or Redemption):
if it has "\fromhtml1" in the first 100 or so bytes, you have HTML, if you
have "\fromtext" - it is text, otherwise it is pure RTF.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Alan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Dmitry Streblechenko" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>>
>> Use the MailItem.BodyFormat property.
>>
>
> Hi Dmitry,
>
> I cannot seem to see that property in my object browser.
>
> I can see the following properties (amongst many others):
>
> .Body
> .HTMLBody
>
> I had thought that (presumably) the .HTMLBody is empty unless the
> format is HTML, but that does not allow for differentiating between
> Plain Text and RTF (which I would definately like to be able to do)
> and also I was not sure that .HTMLBody is non empty if and only if the
> format is HTML.
>
>
> I should have mentioned that I am using Outlook 2000 (SP3) - perhaps
> it is a version issue?
>
> If so, is there a workaround for OL2000?
>
> Thanks,
>
> Alan.
>
>
>
>
>