wwipstuff::SendMapiMail

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)

o.SendMapiMail()                                                 

Return Value

.T. or .F. When .F. check the cErrorMsg property for error string.

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.

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
Overloads:
o.SendMapiMail()

See also:

Class wwipstuff


  Last Updated: 12/19/1999 | © West Wind Technologies, 2008