Group: Simple MAPI - Library: mapi32
Sending email messages with Simple MAPI
MapiSendMail class for Visual FoxPro application
ULONG FAR PASCAL MAPISendMail(
LHANDLE lhSession,
ULONG ulUIParam,
lpMapiMessage lpMessage,
FLAGS flFlags,
ULONG ulReserved
) DECLARE INTEGER MAPISendMail IN mapi32;
INTEGER lhSession,;
INTEGER ulUIParam,;
STRING @ lpMessage,;
INTEGER flFlags,;
INTEGER ulReserved 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.
Returns SUCCESS_SUCCESS (0) if the call succeeded and the message was sent; or a predefined MESSAGE_E_* error value otherwise.
A successful return from MAPISendMail does not necessarily imply recipient validation.
Home