I have the following php code on my HTML page:
<body>
<?php
if ($_POST) {
$message = 'Name :' . $_POST['name'] . "\n" .
'Email :' . $_POST['email'] . "\n" .
'Phone :' . $_POST['phone'] . "\n" .
'Date :' . $_POST['book'] . "\n" .
'Message :' . $_POST['message'];
mail('ruan@gmail.com', 'Contact-us Form', $message);
}
?>
And HTML as the following:
<form method="post" action="contact.php" onsubmit="return valid()" enctype="multipart/form-data">
<ul>
<li>
<p class="left">
<p>Name</p>
<input type="text" name="name" placeholder="John Doe" />
</p>
.....
</form>
Now i have changed the email address to check if that could be the problem but still, I don't receive any email.