Article ID: 268440 - View products that this article applies to.
This article was previously published under Q268440
Extended Messaging Application Programming Interface (MAPI) should not be used to generate HTML-formatted messages. As an alternative, consider using the Microsoft Outlook Object Model, CDONTS, CDOSYS, CDOEX, or a third-party SMTP control.
MAPI 1.0 was written before HTML mail was developed and does not reliably support the creation of HTML-formatted messages. MAPI 1.0 is the version supported by all versions of Microsoft Exchange through version 5.5 (and all Service Packs). This includes the following subordinate technologies:
How Outlook Generates MAPI-based HTML MailThe interfaces that Outlook uses to generate and work with HTML-formatted mail are not exposed externally except for what is exposed through the HTMLBody property. Outlook stores the HTML data as a specially encoded RTF stream in the MAPI property PR_RTF_COMPRESSED. There are no public interfaces for generating, reading, or manipulating this complex stream as HTML data. PR_BODY contains the plain text translation of the message body.
What About PR_BODY_HTML?According to the documentation on PR_BODY_HTML, this property is only supported by a message store if the store returns STORE_HTML_OK in the PR_STORE_SUPPORT_MASK property. No Microsoft message store supports this flag. Some third-party store providers may choose to support this flag and property.
For additional information about MAPI technologies, click the article number below to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/200018/EN-US/ )INFO: Differences Between CDO, Simple MAPI, and Extended MAPI
Article ID: 268440 - Last Review: February 12, 2007 - Revision: 3.4
Contact us for more help