At 09:27 16/5/2001 +0100, James Holloway wrote:
>Hi Christian,
>
>I have an account with f2s.com that I use for sampling scripts with - I set
>up a mailform yesterday after reading this, using mail() to send the email
>to myself. It got here - albeit 6am today (I sent it yesterday
>lunchtime).... Perhaps you're using the mail() function incorrectly?
Well.. maybe something is wrong with my account or something cuz I'm using
it fine... I've tried 3 different ways to send mail that works everywhere
else.... I just put up this little script to send a sample mail...
$to="[EMAIL PROTECTED]";
$from="MySelf <[EMAIL PROTECTED]>";
$subject="just testing";
$body="<h1>Hello! Just testing here....</h1>";
$headers="Content-type: text/html\nFrom: ".$from;
$rs=mail($to,$subject,$body,$headers);
$result=($rs)?"successfull.":"failed.";
echo "Mail to ".$to.": ".$result;
guess what was the output? "Mail to [EMAIL PROTECTED]: failed."
what's wrong with the script above?
--
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]