Am trying to create a mail funciton from php. It showing error like
Mail() [Function.mail]: Failed To Connect To Mailserver At "localhost" Port 25, Verify Your "smtp" And "smtp_Port" Setting In Php.ini Or Use Ini_Set()
i cheked my php.ini file also in directory C:\wamp\bin\apache\Apache2.2.17\bin\php.ini. I found
SMTP = localhost
smtp_port = 25
sendmail_from = santosh_shah777@yahoo.com
mail.add_x_header = On
Is there anything wrong with my php.ini am using wamp 2.1
my php code
<html>
<body>
<?php
$to = "sks7u@yahoo.com";
$subject="test Mail";
$message="Hello ! This is a test Message";
$from = "santosh_shah777@yahoo.com";
$headers="From :" . $from;
mail($to,$subject,$message,$headers);
echo "Mail sent";
?>
</body>
</html>