MAPISENDMAIL callback function (mapi.h)

[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

MAPISENDMAIL Mapisendmail;

ULONG Mapisendmail(
  [in] LHANDLE lhSession,
  [in] ULONG_PTR ulUIParam,
  [in] lpMapiMessage lpMessage,
  [in] FLAGS flFlags,
       ULONG ulReserved
)
{...}

Parameters

[in] lhSession

Type: LHANDLE

For more information, see the MAPISendMailW function.

[in] ulUIParam

Type: ULONG_PTR

For more information, see the MAPISendMailW function.

[in] lpMessage

Type: lpMapiMessage

For more information, see the MAPISendMailW function.

[in] flFlags

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

Requirement Value
Target Platform Windows
Header mapi.h

See also

MAPILogon

MAPISendDocuments

MAPISendMailHelper

MAPISendMailW

MapiMessage

MapiRecipDesc

Simple MAPI