Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 1.58 KB

File metadata and controls

68 lines (48 loc) · 1.58 KB

Home

Function name : MAPISendMail

Group: Simple MAPI - Library: mapi32


The MAPISendMail function sends a message.


Code examples:

Sending email messages with Simple MAPI
MapiSendMail class for Visual FoxPro application

Declaration:

ULONG FAR PASCAL MAPISendMail(
  LHANDLE lhSession,
  ULONG ulUIParam,
  lpMapiMessage lpMessage,
  FLAGS flFlags,
  ULONG ulReserved
)  

FoxPro declaration:

DECLARE INTEGER MAPISendMail IN mapi32;
	INTEGER   lhSession,;
	INTEGER   ulUIParam,;
	STRING  @ lpMessage,;
	INTEGER   flFlags,;
	INTEGER   ulReserved  

Parameters:

lhSession [in] Handle to a Simple MAPI session or zero. If the value of the lhSession parameter is zero, MAPI logs on the user and creates a session that exists only for the duration of the call.

ulUIParam [in] Parent window handle or zero, indicating that if a dialog box is displayed, it is application modal.

lpMessage [in] Pointer to a MapiMessage structure containing the message to be sent.

flFlags [in] Bitmask of option flags.

ulReserved Reserved; must be zero.


Return value:

Returns SUCCESS_SUCCESS (0) if the call succeeded and the message was sent; or a predefined MESSAGE_E_* error value otherwise.


Comments:

A successful return from MAPISendMail does not necessarily imply recipient validation.