Pls Guide Simple code here is not sending mail. The following Code is returning False and not returning any error message. I have already done the needful setting in PHP.ini and sendmail.ini.
<?php
$to = "husainsalik@gmail.com";
$subject = "Test subject";
$body = "Test Body";
$header = 'husainsalik@gmail.com';
$send = mail($to, $subject, $body, $header);
if($send)
{
echo "Mail Sent √";
}
else
{
echo "Mail Failed";
}
?>
The above code is returning Mail Failed.