I use Win2K Pro and was having the same problem.
I fixed it by using a different SMTP server than localhost.
I had to stop IIS Admin service and then restart all IIS services before change took effect.
I then used this function to send my messages:
mail($record[2], $subject, $message, $from);
where all variables contain valid information.
Hope this helps,
YIC,
Matthew Nuzum
Idris Corap wrote:
The mail() function doesn't seem to work that well on my OS.
I'm running a Windows 2000 Advanced Server, IIS5.0, PHP 4.01 PL2.
I've done the main things like:
Edit the line with the SMTP server in PHP.ini
Put an extra "" in my code:
<?
mail("corap@yahoo.com", "Test To Mail", "Hey, this works!","");
?>
But nothing seems to work. It just hangs and waits and waits. An infinite loop.
Is there anybody out there who have fixed this problem?
Cheers!
/idris