Method Context():sendMail() Professional

Sending an e-mail via the connected gateway.

Syntax
:sendMail(  <cSubject>,           ;
            <cMailText>,          ;
            <cFromAddr>,          ;
            <cTo1Addr> ,          ;
            [<cToNAddr>, ...] ) --> lSuccess
Parameters
<cSubject>
<cSubject> is a character string that is the subject line of the e-mail.
<cMailText>
<cMailText> is a character string that is the message of the e-mail.
<cFromAddr>
<cFromAddr> is a character string that is the e-mail address from which the e-mail is sent.
<cTo1Addr>
<cTo1Addr> is a character string that is the recipient address to which the e-mail is sent.
<cToNAddr>
The optional parameter <cToNAddr> is a comma seperated list of additional recipient addresses to which the e-mail is sent.
Return

The method returns .T. (true) if the e-mail could have been sent, otherwise .F. (false) is returned.

Description

The Context class allows for sending an e-mail from a Web application to one ore more recipients.

The first four parameters must be specified for this method to indicate subject, message text, sender name and e-mail address of the first recipient. Addresses of additional recipients can be specified optionally beginning with the 5th parameter <cToNAddr>.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.