IConverterSession::SetEncoding
Applies to: Office 2010 | Outlook 2010 | Visual Studio
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 chooses 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. |
See Also
Reference
IConverterSession::MAPIToMIMEStm
IConverterSession::SetSaveFormat
IConverterSession::SetTextWrapping