IConverterSession::MAPIToMIMEStm [Outlook 2003 API Reference]
Converts a MAPI message to a MIME stream.
Quick Info
See IConverterSession.
HRESULT IConverterSession::MAPIToMIMEStm(
LPMESSAGE pmsg,
LPSTREAM pstm,
ULONG ulFlags
);
Parameters
pmsg
[in] Pointer to the message to convert. See mapidefs.h for the type definition of LPMESSAGE.
pstm
[out] IStream interface to output the stream.
ulFlags
[in] Flags that indicate specific actions for the converter:
CCSF_NO_MSGID
Do not include Message-Id field in outgoing messages.
CCSF_NOHEADERS
The converter should ignore the headers of the outside message.
CCSF_SMTP
The converter is being passed an SMTP message. This flag must always be set.
Return Values
E_INVALIDARG
Invalid flags were passed, or pmsg or pstm is NULL.
Remarks
Supported only for standard Outlook message types.
See Also
Constants for the MAPI-MIME Conversion API
IConverterSession::SetEncoding
IConverterSession::SetSaveFormat