This method allows sending mail using the Microsoft MAPI protocols using the current MAPI profile. It uses the same properties as the SendMail method minus the sender address info.

This method is useful for standalone applications or even Web applications that need to use the full MAPI interface functionality. For example, MAPI interfaces with Outlook and Outlook Express to give you a history of messages sent and will leave outgoing messages in the out queue until messages are sent. This functionality is not automatically available for pure SMTP connections using SendMail.

(currently attachments are not supported)

Syntax:

o.SendMapiMail()
Return: .T. or .F. When .F. check the cErrorMsg property for error string.
Example:
loIP =create("wwipstuff")

loIP.cRecipient = "somebody@star.net,meg@guest.com"
loIP.cCCList = "frank@gorge.com,greg@gorge.com"
loIP.cBCCList = "bill@gorge.com,bail@gorge.com"

loIP.cSubject = "Test"
loIp.cMessage = "Test Message text"

IF !loIP.SendMapiMail()
   ? loIP.cErrorMsg
ENDIF
Remarks: This method will try to send messages immediately, but if the the computer is not online messages are queued in the MAPI profile. If you look in Outlook or Outlook Express, you'll see these messages in the Outbox.

See also:

Class wwipstuff

Updated: 12/19/1999 | Send topic feedback