my HTML / PHP website does not send email from form. It is saying thank you but mail is not recieved. Why? please help!
<?php $name = $_POST['name'];
$email = $_POST['mail'];
$number = $_POST['number'];
$message = $_POST['message'];
$formcontent="From: $name \n Contact No: $number \n Message: $message";
$recipient = "umair.bpd@gmail.com";
$subject = "Contact form from website";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
echo "Thank You!";
?>
<form id="contact-form" action="submitform.php" method="POST">
<input name="name" type="text" placeholder="Name">
<input name="mail" type="text" placeholder="Email">
<input name="number" type="text" placeholder="Contact No.">
<textarea name="message" placeholder="Message"></textarea>
<input type="submit" value="Send">
</form>