title: PHPMailer Email going to Gmail Promotions Tab, not Inbox, why?
body: <p>Have set up a system for a Website to send mails using PHPMailer to company staffs, but E-mails are Not going to the Inbox for those using Gmail, it's getting Stored in the Promotions-TAB... </p>
  
  <p>The mails are being sent using a Yahoo Account.</p>
  
  <p>Please see my Codes</p>
  
  <pre><code>    require_once('pm/PHPMailerAutoload.php');   
  
          $username ="xxxxxxxs@yahoo.com";
          $password="pwdxxxx";
  
          $senderName ="COMPANY NAME HERE";
          $mail = new PHPMailer();
  
  
          $mail-&gt;IsSMTP();
          $mail-&gt;SMTPAuth   = true;
          $mail-&gt;SMTPSecure = "tls";
          $mail-&gt;Host       = "smtp.mail.yahoo.com";
          $mail-&gt;Port       = 587;
          $mail-&gt;Username   = $username;
          $mail-&gt;Password   = $password;
          $mail-&gt;SMTPKeepAlive = true;
  
          // Build the message
          $mail-&gt;Subject = 'Urgent Meeting at the Director's Officie';
  
          $mail-&gt;From = $username;
          $mail-&gt;FromName = $senderName;
          $mail-&gt;AddReplyTo('xxxxx@gmail.com','COMPANY NAME HERE');
  
              $mail-&gt;AddAddress($user_data["Email_Add"],$user_data["Staff_Name"]);
          /*
          ooooooooooooooooooooooooooo
          ooooooooooooooooooooooooooo
          0000---MESSAGE-STARTS--oooo
          ooooooooooooooooooooooooooo
          ooooooooooooooooooooooooooo
          */
  
          $mail-&gt;msgHTML('
  
          &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;Urgent Meeting at the Director's Office&lt;/title&gt;
  
  
  &lt;/head&gt;
  
      &lt;body&gt;
  
  
           &lt;div style="width:100%;" align="center"&gt;
                There is an Urgent meeting at the Director's Office. All stuffs MUST be there. in 30Mins
           &lt;/div&gt;
  
  
      &lt;/body&gt;
      &lt;/html&gt;
  
      ');
  
  
      /*
          ooooooooooooooooooooooooooo
          ooooooooooooooooooooooooooo
          0000---MESSAGE-ENDS-ooooooo
          ooooooooooooooooooooooooooo
          ooooooooooooooooooooooooooo
          */
  
          if(!$mail-&gt;Send()) {
  
      echo 'Failed';
      }
  
          else {
              echo 'Sent well';
  
          }
  
  
          $mail-&gt;SmtpClose();
  </code></pre>
  
  <p>What can I do to have the received in the inbox?... Please Help thanx</p>