Is there a way to see if a message is html?

B

BruceJ

I would like to "find" (maybe with advance filter? or maybe "rules") to find
messages with HTML content. This would usually be when emails are in a
certain filter, but... Any methods might help

Thanks
Brucej
 
N

nycboy

Try this:

Dim oiMail As mailItem

...

If (Len(oiMail.HTMLBody) <> 0) Then
' Handle HTML message
Else
' Handle non-HTML
End If
...




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
S

Sue Mosher [MVP-Outlook]

Inspector.EditorType is a better indicator, since HTMLBody may not be empty
in all versions of Outlook.
 
Top