XAMPP 1.73
Mercury/32
Windows XP SP3
When I run a test email script, I am getting the following error:
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\_mail_test\test_mail.php on line 5
Message delivery failed...
----
I am trying to send it to my gmail mail account and test_mail.php is:
<?php
$to = "mygmailaccount@gmail.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>