mail() error handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

I have a piece of code that uses mail() to, well, send mail.
It works, but not the error handling which is as follows:

<snip>
$send = @mail( $to, $subject, $body, $headers );

if($send)
{header( "Location: http://somewhere/thankyou.html"; );}
else
{print "Oops, couldn't deliver the message, please try again soon."; }

I checked, and it always returns 1, even though I tried a user@server that
doesn't exist!
Anyone got a clue what I've done wrong?

Kind Regards,
Henrik Johansson
System Administrator
RADIUS Sweden AB

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux