Re: function mail
| From: | Richard Lynch | Date: | Tue, 27 Feb 2001 22:36:29 +0000 |
| Subject: | Re: function mail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41897@lists.php.net to get a copy of this message | ||
> $sent=mail("castoldi@inf.ufsc.br", $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