i am not recveing email form my Website i am reving
Hello after 4th of December i am not reeving mail email form my website , from my inquiry from ,
before 4th December we reeving all the mail , but after 4th we didn't receiving any email from my php inquiry from
my email id is :
info@indianpackersmovers.in
below my script
<?php
/* Set e-mail recipient */
$myemail = "
info@indianpackersmovers.in";
/* Check all form inputs using check_input function */
$yourname = check_input($_POST['name'], "Enter your name");
$email = check_input($_POST['email'], "Write a subject");
$number = check_input($_POST['contact']);
$from = check_input($_POST['from']);
$to = check_input($_POST['to']);
/* If e-mail is not valid show error message */
if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email))
{
show_error("E-mail address not valid");
}
/* Let's prepare the message for the e-mail */
$message = "indian Packers and Movers!
Your contact form has been submitted by:
Name: $yourname
E-mail: $email
Number: $number
Moving-From : $from
Moving-To : $to
End of message
";
/* Send the message using mail() function */
mail($myemail, $number, $message);
/* Redirect visitor to the thank you page */
header('Location: thank-you.html');
exit();
/* Functions we used */
function check_input($data, $problem='')
{
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
if ($problem && strlen($data) == 0)
{
show_error($problem);
}
return $data;
}
function show_error($myError)
{
?>
<html>
<body>
<b>Please correct the following error:</b><br />
<?php echo $myError; ?>
</body>
</html>
<?php
exit();
}
?>