:SendMessage()


Class

     aprSMTP()

 

Syntax

     :SendMessage(cSender, cRecipient, [cMessage], [hSession] ) -> lSuccess

 

Parameters

 

cSender

String that specifies the e-mail address of the sender.

 

cRecipient

String that specifies the recipient of the message. Multiple recipients may be specified by separating each address with a comma.

 

cMessage

String that specifies the name of the file that contains the message to be delivered.

If not provided, the contents of the system clipboard are used instead of a file.

 

hSession

Optional: If hSession is not passed, the value in :Session will be used

 

Return

Logical indicating Success.

Returns .T. if the operation succeeds, otherwise returns .F.

To get more information about the error, see :nErr and :cErr.

 

Description

The :SendMessage() method is used to send the contents of a file or the system clipboard to the specified recipients.

The message must be in the standard format as described in RFC 822.

 

This protocol is only concerned with the delivery of a message and not its contents. Header fields in the message are not parsed to determine the recipients. This recipient parameter should be a concatenation of all recipients, including carbon copies and blind carbon copies, with each address separated with a comma.

  

See Also

:AppendMessage(), :BeginMessage(), :GetMessageBytesCopied()