SMTP :: boolean send ( string subject )

Returns TRUE if the e-mail has been successfully sent, FALSE if not. Send the e-mail. Example:

$mail = new SMTP;

// before you must use:
// AddTo() - set 'To' mail address
// From() - set 'From' mail address
// Text() or/and Html() - set the message

$sent = $mail->Send('subject');

echo $sent ? 'ok' : 'error';

// for debugging
echo '<br>Result: '.$mail->result;

[ Comments ] Last update: Friday, June 16, 2006