my OS is Windows XP, i have installed apache server (2.0 X) .. i am writing a script to send an email via php mail function.
<?php
$to = "myAddress@hotmail.com";
echo "1";
$subject = "Hi!";
echo "2";
$body = "Hi,\n\nHow are you?";
echo "3";
if (mail($to, $subject, $body)) {
echo "4";
echo("<p>Message successfully sent!</p>");
} else {
echo "6";
echo("<p>Message delivery failed...</p>");
}
?>
the mail doesn't send and i am getting the warning "Message delivery failed" .. i read few articles on this issue and got to know that you should configure the php.ini file enable the email feature, could some one send me the configuration code..
i am new to PHP .. plss help me :( :(