Last modified: April 26, 2011
Applies to: Office 2010 | Outlook 2010 | Visual Studio
Converts a MIME stream to a MAPI message.
HRESULT IConverterSession:: MIMEToMAPI (
IStream interface to a MIME stream.
[out] Pointer to the message to load. See mapidefs.h for the type definition of
[in] This value must be
[in] This parameter identifies any special action to be taken during the conversion. It must be zero (0) if no specific action is to be taken, or a combination of the following values:
Sent/unsent information is persisted in X-Unsent.
The MIME stream is for a Simple MAPI Transfer Protocol (SMTP) message.
BCC recipients of the MIME stream should be included in the MAPI message.
The HTML body of the MIME stream should be converted to Rich Text Format (RTF) in the MAPI message.
pstm is null, pmsg is null, or ulFlags is invalid.
If you have specified
CCSF_USE_RTF as part of ulFlags and the destination message store supports both HTML and RTF, the MAPI message will be converted to either HTML or RTF. If the message is converted to RTF, the converted format will be compressed RTF, any HTML will be embedded in the compressed RTF string, and the string will be contained in the . PidTagRtfCompressed Canonical Property
For MFCMAPI sample code, see the following table.
MFCMAPI uses MimeToMAPI to convert an EML file to a MAPI message.
MFCMAPI uses MAPIToMIMEStm to convert a MAPI message to an EML file.