IConverterSession::SetEncoding
Applies to: Outlook 2013 | Outlook 2016
Initializes the encoding to be used during conversion.
HRESULT IConverterSession:: SetEncoding (
ENCODINGTYPE et
);
Parameters
et
An ENCODINGTYPE value. Only the following values are supported:
- IET_BASE64
- IET_UUENCODE
- IET_QP
- IET_7BIT
- IET_8BIT
Return value
E_INVALIDARG
The encoding type passed was invalid.
Remarks
Call SetEncoding before using IConverterSession::MAPIToMIMEStm to perform conversion.
Use SetEncoding to set the encoding for only the outermost message body of a mail item. Microsoft Outlook 2010 and Microsoft Outlook 2013 choose the encoding for any individual attachments.
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. |