title: PHP Web Form Not Sending To Gmail Email
body: <p>I have a php form that I made and when someone fills out the form it works fine with all other email accounts (yahoo, hotmail, @mydomain.com, etc) but when it comes to sending the email to a gmail user, the email never comes through, not even in the spam box. </p>
  
  <pre><code>            $from = $email;
  
              //Testing Below
              //$headers = 'From:noreply@mydomainname.com' . "\r\n"; 
              $headers .= "From: $from \n";
              $headers .= " MIME-Version: 1.0\r\n ";
              $headers .= " Content-Type: text/html; charset=ISO-8859-1\r\n ";
  
              //Mail The Message
              mail($to, $subject, $message, $headers);
  </code></pre>
  
  <p>The code above will not send to gmail but will work for all other email accounts. This one (below) will work for gmail but of course then I don't have the option of html in the email. </p>
  
  <pre><code>            $headers = 'From:noreply@mydomainname.com' . "\r\n"; 
              //$headers .= "From: $from \n";
              //$headers .= " MIME-Version: 1.0\r\n ";
              //$headers .= " Content-Type: text/html; charset=ISO-8859-1\r\n ";
  
              //Mail The Message
              mail($to, $subject, $message, $headers);
  </code></pre>
  
  <p>So basically when I add the MIME and Content type to the headers variable it wont send to a gmail account.</p>
  
  <p>Thanks in advance!</p>