IConverterSession::SetSaveFormat

Applies to: Outlook 2013 | Outlook 2016

Sets the format in which the converter will return a MIME stream in IConverterSession::MAPIToMIMEStm.

HRESULT IConverterSession::SetSaveFormat ( 
     MIMESAVETYPE mstSaveFormat 
);

Parameters

mstSaveFormat

[in] The save format to be used for a MIME stream. For more information, see the enum type MIMESAVETYPE.

  • SAVE_RFC1521: Use MIME, which is the default.
  • SAVE_RFC822: Use uuencode.

Return values

S_OK

The call was successful.

MFCMAPI reference

For MFCMAPI sample code, see the following table.

File Function Comment
MapiMime.cpp
ImportEMLToIMessage
MFCMAPI uses MimeToMAPI to convert an EML file to a MAPI message.
MapiMime.cpp
ExportIMessageToEML
MFCMAPI uses MAPIToMIMEStm to convert a MAPI message to an EML file.

See also