title: Php mail() is not sending the emails
body: <p>I am using the php mail() function to send mails from my server. It was working fine before but now I am not getting the simple mail. Mail status is TRUE but emails are not being received. I tested it on the other server its working fine there.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$to = 'myemail@gmail.com';
  $name = trim($_POST['name']);
  $email = trim($_POST['email']);
  $phone_number = trim($_POST['phone']);
  $message = trim($_POST['message']);
  $subject = 'Contact Message from  - ' . strip_tags($name);
  $headers = "From: " . $name . " &lt;" . $email . "&gt; \r\n";
  $headers .= "Reply-To: " . strip_tags($email) . "\r\n";
  $headers .= "Content-type: text/html \r\n";
  $message = '&lt;html&gt;&lt;body&gt;';
  $message .= '&lt;h1&gt;Hello, &lt;/h1&gt;';
  $message .= '&lt;/body&gt;&lt;/html&gt;';
  $message .= '&lt;html&gt;&lt;body&gt;';
  $message .= '&lt;table rules="all" style="border-color: #666; border:1px solid;" cellpadding="10"&gt;';
  $message .= "&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Name:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;" . $name . "&lt;/td&gt;&lt;/tr&gt;";
  $message .= "&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Email:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;" . $email . "&lt;/td&gt;&lt;/tr&gt;";
  $message .= "&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Phone Number:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;" . $phone_number . "&lt;/td&gt;&lt;/tr&gt;";
  $message .= "&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Message:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;" . $message . "&lt;/td&gt;&lt;/tr&gt;";
  $message .= "&lt;/table&gt;";
  $message .= "&lt;/body&gt;&lt;/html&gt;";
  $confirmation = mail($to, $subject, $message, $headers);
  if ($confirmation) {
      print "&lt;meta http-equiv=\"refresh\" content=\"0;URL=thanks.php\"&gt;";
  } else {
      print "&lt;meta http-equiv=\"refresh\" content=\"0;URL=error.php\"&gt;";
  }
  </code></pre>