hi,

i am facing the above issue. i set the headers up for the mail(). tried 
submitting the email. it worked great on linux server. but when i try to 
run it on a win2k. i just get:

Warning: Server Error in blahblah.php on line blahblah

my piece of code:
$headers  = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: [EMAIL PROTECTED]\r\n";
$headers .= "Cc: [EMAIL PROTECTED]\r\n";
$to = "[EMAIL PROTECTED]";
$subject = "my subject";
$message = "my message";
mail($to, $subject, $message, $headers);

any idea whats wrong with the above code?

the log file shows:
#Fields: time c-ip cs-method cs-uri-stem sc-status
12:23:30 127.0.0.1 HELO - 250
12:23:30 127.0.0.1 MAIL - 250
12:23:30 127.0.0.1 RCPT - 250
12:23:30 127.0.0.1 RCPT - 501
12:23:30 127.0.0.1 QUIT - 0

it appears that 501 = Not Implemented on IIS5. but i am not sure on that.

thanks & regards,
lance


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

Reply via email to