The feedback mails have stopped recieving in inbox without any change done

This is the php script which runs the feedback form n sends feedbacks to my email account. But now i have noticed that feedbacks have stopped coming to my mail inbox even though it shows mail sent message. I have not changed anything in my script nor in other html pages. Please help

This first bit sets the email address that you want the form to be submitted to.
You will need to change this value to a valid email address that you can access.
$webmaster_email = “”;

This bit sets the URLs of the supporting pages.
If you change the names of any of the pages, you will need to change the values here.
$feedback_page = “feedback_form.htm”;
$error_page = “error_message.htm”;
$thankyou_page = “thank_you.htm”;

This next bit loads the form field data into variables.
If you add a form field, you will need to add it here.
$email_address = $_REQUEST[‘email_address’] ;
$comments = $_REQUEST[‘comments’] ;

The following function checks for email injection.
Specifically, it checks for carriage returns - typically used by spammers to inject a CC list.
function isInjected($str) {
$injections = array(‘(
‘(\ +)’,
$inject = join(‘|’, $injections);
$inject = “/$inject/i”;
if(preg_match($inject,$str)) {
return true;
else {
return false;

// If the user tries to access this script directly, redirect them to the feedback form,
if (!isset($_REQUEST[‘email_address’])) {
header( “Location: $feedback_page” );

// If the form fields are empty, redirect to the error page.
elseif (empty($email_address) || empty($comments)) {
header( “Location: $error_page” );

// If email injection is detected, redirect to the error page.
elseif ( isInjected($email_address) ) {
header( “Location: $error_page” );

// If we passed all previous tests, send the email then redirect to the thank you page.
else {
mail( “$webmaster_email”, “Feedback Form Results”,
$comments, “From: $email_address” );
header( “Location: $thankyou_page” );

instead of i have put my email id in the script

Hi ddkrsk,

Did you change anything with your script? If not then it is not likely do to your script.

Have you checked if recently the ISP that you host your email with, has changed new smtp policy that says that you must use their DNS to route mail or have they set a Reverse DNS requirement that is not satisfied with your account?


Thank u Steve.
how to check that…i never did it before when the script was running fine…

If you have a rough idea of when it happened I would contact the hosts and ask them if any changes have taken place.

Just to make sure it is not your feedback form; could you run the script below and let us know the result?

$to = “”;
$subject = “Test mail”;
$message = “Hello! This is a simple email message.”;
$from = “”;
$headers = “From:” . $from;
echo “Mail Sent.”;

Remember to change to your email.


You can use an online tool like mxtoolbox to see if the reverse DNS is set. You will also see your email banner to see if it matches the reverse DNS host banner of your SMTP server.

Like Rubble mentioned to determine if your Internet Provider is forcing you to use their SMTP server, you can either in a mail client change (or check) that you are using your Internet providers SMTP server from the network where your mail server resides. If not then change your script to use your Internet provider’s SMTP - normally this is a non-authenticated usage. Once you make these changes you can test to see if this is the issue. Or, you can contact your ISP and ask them if they require that mail emanating across their network is required to use their SMTP.


You may want to check your mail server IP and see if it’s gotten on a blacklist.

The link from Steve above lets you check blacklisting as well.