Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MAPISendMail function

[MAPISendMail is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use MAPISendMailW. ]

Sends an ANSI message.

On Windows 8 and later:  Call MAPISendMailW to send a message.

On Windows 7 and earlier:  Use MAPISendMailHelper to send a message.

Syntax


ULONG WINAPI MAPISendMail(
  _In_ LHANDLE       lhSession,
  _In_ ULONG_PTR     ulUIParam,
  _In_ lpMapiMessage lpMessage,
  _In_ FLAGS         flFlags,
       ULONG         ulReserved
);

Parameters

lhSession [in]

Type: LHANDLE

For more information, see the MAPISendMailW function.

ulUIParam [in]

Type: ULONG_PTR

For more information, see the MAPISendMailW function.

lpMessage [in]

Type: lpMapiMessage

For more information, see the MAPISendMailW function.

flFlags [in]

Type: FLAGS

For more information, see the MAPISendMailW function.

ulReserved

Type: ULONG

For more information, see the MAPISendMailW function.

Return value

Type: ULONG

For more information, see the MAPISendMailW function.

Requirements

Header

Mapi.h

DLL

Mapi32.dll

See also

Simple MAPI
MAPISendMailW
MAPISendMailHelper
MAPISendDocuments
MAPILogon
MapiMessage
MapiRecipDesc

 

 

Community Additions

Show:
© 2015 Microsoft