August 1999
Intermediate to advanced
1488 pages
72h 53m
English
sendmail.send()
The send() method of the SendMail objects attempts to send the email from the value specified in the From property to those specified in the To, Cc, and Bcc properties through the email server specified in the Smtpserver property. This method returns true if successful and false otherwise.
Listing 8.128 tries to send a message. If an error occurs when trying to send the message, an error message is written to the user's page.
<SERVER> // Try to send an instance of the mail if(!myMail.send()){ // If there was an error, give the user the email address of whom they // should contact about the error, as well as the error code ... |
Read now
Unlock full access