Re: Help with sending mail
| From: | Teodor Cimpoesu | Date: | Mon, 30 Oct 2000 14:49:10 +0000 |
| Subject: | Re: Help with sending mail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22688@lists.php.net to get a copy of this message | ||
Hi Armando!
On Mon, 30 Oct 2000, Armando wrote:
> Hello .. I have a problem with sending mail ..
> I use command
>
> if (mail($addresses,$subject,$message,$headers)) {
> print "SEND COMPLETE!!!";
> } else {
> print "SEND INCOMPLETE!!!";
> }
>
>
> but this is not working..
> I also tried putting statement out of IF statment but It is also not working
> ..
>
> any ideas ??
>
> HELP PLEASE !!!
>
Armando, please take your cat from jumping on the keyboard. I see lots
of `!' there ;)
mail() function is known to return bogus status code (iirc). But did
you check the recipient address?
try mail('your-address-here',<stuff>) and see if you get any mail.
If yes and mail() returned 0, ignore the return code.
-- teodor