:SendMessage()
Class
Syntax
:SendMessage( cFileName, [hSession] ) -> lSuccess
Parameters
|
|
cFileName |
File name containing a properly formatted message to send |
|
|
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 sends a message to the specified recipients.
The :SendMessage() method sends a message through the POP3 server using the XTND XMIT command. The specified file must be in the standard format as described in RFC 822, with the recipient addresses specified in the To: and Cc: header fields. Some servers may support blind carbon copies by using addresses specified in a Bcc: header field, and then removing those addresses from the header before delivering the message.
Note that not all POP3 servers support this command.
It is recommended that you use the Simple Mail Transfer Protocol (SMTP) for general mail delivery purposes.
See Also