MAPISENDMAIL callback 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

MAPISENDMAIL Mapisendmail;

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

Parameters

lhSession

Type: LHANDLE

For more information, see the MAPISendMailW function.

ulUIParam

Type: ULONG_PTR

For more information, see the MAPISendMailW function.

lpMessage

Type: lpMapiMessage

For more information, see the MAPISendMailW function.

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

   
Target Platform Windows
Header mapi.h

See Also

MAPILogon

MAPISendDocuments

MAPISendMailHelper

MAPISendMailW

MapiMessage

MapiRecipDesc

Simple MAPI