Click to See Complete Forum and Search --> : Email setting?


mshen
12-27-2002, 12:04 AM
Hi,

I use PHP in Windows 2000 with IIS 5, I want to send email to others with SMTP. I have a SMTP email account

First I set "SMTP" part and "sendmail_from" part in php.ini.then I try a small program.that is here

<?php
$contactemail = "msjha@myrealbox.com";
$message = "test";
$subject = "test";

mail($contactemail, $subject, $message);
echo "it is ok";
?>

but I get a error response ,the error message is "Warning: Server Error ",Please let me know why this happen and how to solve the problem.Thanks a lot.

Happy Holidays!

planetsim
12-27-2002, 01:20 AM
Umm.. Im no Mod and i dont think its in the rules of this Forum. But remeber there are others here that need help. Dont post the same post in mulitple forums.