SMTP :: boolean from ( string address [, string name ] ) Returns TRUE if has been successfully set, FALSE if not. string address format are user@hostname Example:
$mail = new SMTP; $fset = $mail->From('me@domain.com'); echo $fset ? 'ok' : 'error';