my contact form is not working when I try to send a message. I'm not a backend developer that's why am not able to figure out the issue. my files are in my hosting server. so can anybody please tell what wrong am I doing.
HTML
<form action="contact-form.php" method="post" name="contact-form" autocomplete="off">
<input type="text" placeholder="Your Name" name="name">
<input type="text" placeholder="Your Email" name="email">
<input type="Message" placeholder="Message" name="message">
<input type="submit" value="Send" name="submit">
</form>
PHP
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$formcontent="From: $name \n Message: $message";
$recipient = "salmanbinhilabi@gmail.com";
$subject = "Contact Form";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
echo "Thank You!";
?>