title: Using wp_mail, emails not received in Gmail account only (Yahoo & Hotmail are fine)
body: <p>I created a new custom page in WordPress to test sending emails and this is my code...</p>
  
  <pre><code>&lt;?php
  /*
  Template Name:testemail
  */
  
  get_header();
  add_filter( 'wp_mail_from_name', 'my_mail_from_name' );
  add_filter('wp_mail_content_type',create_function('', 'return "text/html";'));
  function my_mail_from_name( $name )
  {
      return 'nameeeeee';
  }
  
  wp_mail('salwaieh@gmail.com', 'The subject1', '&lt;p&gt;The &lt;em&gt;HTML&lt;/em&gt; message&lt;/p&gt;');
  wp_mail('salwaieh2012@gmail.com', 'The subjectx', '&lt;p&gt;The &lt;em&gt;HTML&lt;/em&gt; message&lt;/p&gt;');
  wp_mail('salwaieh@hotmail.com', 'The subject2', '&lt;p&gt;The &lt;em&gt;HTML&lt;/em&gt; message&lt;/p&gt;');
  wp_mail('salwaieh@yahoo.com', 'The subject3', '&lt;p&gt;The &lt;em&gt;HTML&lt;/em&gt; message&lt;/p&gt;');
  $to      = 'salwaieh@yahoo.com';
  $subject = 'The subject4';
  $message = 'The subject4 The subject4 The subject4The subject4 The subject4 The subject4';
  $headers = 'From: webmaster@example.com' . "\r\n" .
      'Reply-To: webmaster@example.com' . "\r\n" .
      'X-Mailer: PHP/' . phpversion();
  mail($to, $subject, $message, $headers);
  
  
  $to      = 'salwaieh2012@gmail.com';
  $subject = 'xxxxxxxxx';
  $message = 'The subject4 The subject4 The subject4The subject4 The subject4 The subject4';
  $headers = 'From: webmaster@example.com' . "\r\n" .
      'Reply-To: webmaster@example.com' . "\r\n" .
      'X-Mailer: PHP/' . phpversion();
  mail($to, $subject, $message, $headers);
  
  
  get_footer(); ?&gt;
  </code></pre>
  
  <p>I received all emails to Yahoo and Hotmail accounts but why I can't find any email in my Gmail inbox?</p>