> $sent=mail("[EMAIL PROTECTED]", $subject, $msg, $from);
>
> if $sent==1 --> the e-mail was sent
>
> if $sent==0 --> problem when sending e-mail??
>
> how this works? When the function mail will have a problem?
>
> if the "to" mail are wrong?

If you are sending "local" mail, with no "@" in it, you'd probably get 0
back if it is an invalid user.

If sendmail (or your SMTP server in Windows) is dead, you'd get a "0" back.

The "to" mail could be completely bogus, and you'll still get a 1 back,
though.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to