title: gmail ignoring emails from a php contact form
body: <p>We use a php email form on a website, it works fine when delivering email to other email programs, just not gmail, ive checked the spam and the inbox, but i get nothing, its as if gmail dosnt trust the email and completly ignores it. How can we get them to come through ? </p>
  
  <p>the code im using for the form is :</p>
  
  <pre><code>&lt;div id="contact-form"&gt;
  &lt;form id="commentForm" action="assets/php/mail.php" method="POST"&gt;
  &lt;input type="text" name="name" class="required" placeholder="Name.."&gt;
  
  &lt;input type="text" name="email" class="required email" placeholder="Email.."&gt;
  
  &lt;input type="text" name="phone" class="required" placeholder="Phone.."&gt;
  
  &lt;textarea name="message" placeholder="Message.." class="required"&gt;&lt;/textarea&gt;&lt;br /&gt;
  
  &lt;input class="subm" type="submit" value="Submit.."&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and the php is </p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
  &lt;title&gt;Contact Form Confirmation&lt;/title&gt;
  
  &lt;meta http-equiv="refresh" content="4; url=http://www.domain.co.uk"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;?php $name = $_POST['name'];
  $email = $_POST['email'];
  $phone = $_POST['phone'];
  $message = $_POST['message'];
  $formcontent="
  &lt;h1&gt;From :&lt;/h1&gt; $name \n
  &lt;h1&gt;Email :&lt;/h1&gt; $email \n
  &lt;h1&gt;Phone :&lt;/h1&gt; $phone \n 
  &lt;h1&gt;Message :&lt;/h1&gt; $message
  ";
  
  $recipient = "studio@domain.co.uk";
  $subject = "Contact Form";
  $mailheader = "MIME-Version: 1.0" . "\r\n";
  $mailheader .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
  $mailheader .= "From: $email \r\n";
  mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
  
  echo("&lt;p&gt;Thanks for getting in touch, we'll get back to you shortly..&lt;/p&gt;");
  ?&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>