PHP script
$from = "xyz@gmail.com";
$to = "xyz@yahoo.com";
$subject = "subject";
$mailtext = "blablabla";
if (mail($to, $subject, $mailtext, "From: $from "))
{
echo "Enquiry sent!";
}else {
echo "fail!";
}
When I run the code it displays enquiry sent which means mail is sent but the mail is not recieved .