I installed PHP 4.2.2 on a Win2K server running IIS 5. PHP is configured as cgi.
Everything works great except that an error occurs when the mail function "mail()" is invoked.
The mail function is configured correctly
<?
mail("me@mydomain.com","Test Email","This is a test\n","From: someone@mydomain.com");
?>
But, the resulting page shows an error at the exact line number where the mail function begins...
Server Error: Line 34....
Below is a copy of the smtp info from the php.ini file...
[mail function]
SMTP = localhost ;for win32 only
sendmail_from = me@localhost.com ;for win32 only
Has anyone here had this problem? What am I missing? Does Win2K and IIS require additional software to be installed for this to work?
Thanks for any assistance you can provide.