I have been struggling with this all day, Please help. I have XAMPP stack installed, however it will not send e-mails using the mail() function.
[code][php]
$body = “test body”;
$to = “admin@localhost”;
$subject = “test subject”;
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
if (mail($to,$subject,$body,$headers))
{
echo "mail sent";
}
else
{
echo "failure!";
}
[/php][/code]