I am Using below code to send simple mail, but it not working..
<?php
if(isset($_POST['submit_form']))
{
$to = 'sam@gmail.com';
$headers = "From: sample@hotmail.com \r\n";
$email_subject="test Mail";
$email_body="test MAIL";
mail($to,$email_subject,$email_body,$headers);
if (mail($to,$email_subject,$email_body,$headers)) {
echo("<p>Message successfully sent!</p>");
} else
{
echo("<p>Message delivery failed...</p>");
}
}
?>

