mail() in windows + php4.3
| From: | KK Kong | Date: | Wed, 25 Feb 2004 04:22:15 +0000 |
| Subject: | mail() in windows + php4.3 | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969359213@lists.php.net to get a copy of this message | ||
I keep geting error message:
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header
missing in D:\Inetpub\wwwroot\php\sendmail.php on line 11
php.ini:
sendmail_from = webmaster@mydomain.com
sendmail.php:
<?php
mail("user@mydomain.com", "My Subject", "Line 1\nLine 2\nLine 3",
"From: webmaster@mydomain.com");
?>
Can anyone help with this problem? thanks a lot!
KK Kong