IConverterSession::SetEncoding

Last modified: June 25, 2012

Applies to: Outlook

Initializes the encoding to be used during conversion.

HRESULT IConverterSession:: SetEncoding ( 
     ENCODINGTYPE et 
);

et

An ENCODINGTYPE value. Only the following values are supported:

  • IET_BASE64

  • IET_UUENCODE

  • IET_QP

  • IET_7BIT

  • IET_8BIT

E_INVALIDARG

The encoding type passed was invalid.

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.

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.

Show:
© 2014 Microsoft