php mail server error
I got a problem sending mail throught the php command mail. I am running a Windows Server with PHP 4.3.1.It shows the following.
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in c:\program files\apache group\apache\htdocs\tyler\lars\admin\sendnewsletter.php on line 32
This is what i put in.
mail($result[0], $subject, $newsletter, "From: IT3000 Newsletter");
This is what the sendmail_from function in the php.ini is set at.
sendmail_from = root@localhost
Could someone be able to help me?