Hi to all,
i need some help about e mail sending.i am basic learner of php.
<?php
$to="shyamprasad5292001@gmail.com";
$subject="test mail";
$message="hello!shyam this is sample mail to you.";
$from="shyamprasad_5292001@yahoo.com";
$headers="From:$from";
mail($to,$subject,$message,$headers);
echo "mail sent";
?>
when i run this script i got following errors.how to fix these problems.
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:\easyphp1-8\www\mail.php on line 7
i am working on local host.i opened php.ini and saw this SMTP and smtp_port variable.please any one explain all modification in php.ini and reqiurements to send a mail.