title: PHPmailer code works great to send to non-google apps email addresses but fails for google apps address
body: <p>I am having a unique issue (I did a thorough search on SO before I attempted to ask this question.
  When I use the PHPMailer to send to a gmail (or hotmail, etc) address, it works great. As soon as I change it to send to a Google Apps email address, I don't get any error message instead it tells me it was successfull but no emails come through.</p>
  
  <p>Has anybody seen this issue before? Is my code missing something very particular that makes it a valid email to pass through Google Apps Servers (not sure if I am heading in the right direction here). Thank you!</p>
  
  <p>Start of my Code:</p>
  
  <pre><code>&lt;?php
  
  require("/PHPMailer_5.2.0/class.phpmailer.php");
  $mail = new PHPMailer();
  $mail-&gt;IsSMTP();
  $mail-&gt;Port = 465;
  $mail-&gt;Host = 'smtp.gmail.com'; // "ssl://smtp.gmail.com" didn't worked
  $mail-&gt;IsHTML(true); // if you are going to send HTML formatted emails
  $mail-&gt;Mailer = 'mail';
  $mail-&gt;SMTPSecure = 'ssl';
  
  $mail-&gt;SMTPAuth = true;
  $mail-&gt;Username = "******@dynamicsafetyfirst.com";
  $mail-&gt;Password = "*******";
  
  $mail-&gt;From     = $_POST['email'];
  $mail-&gt;AddAddress("someuser@gmail.com");
  
  $mail-&gt;Subject  = "First PHPMailer Message";
  $mail-&gt;WordWrap = 50;
  $mail-&gt;FromName = $_POST['name'];
  $mail-&gt;Subject = $_POST['enquiry'];
  $mail-&gt;Body = $_POST['comments']. "--By--".' name: '. $_POST['name']."--". 'email: ' .$_POST['email']; 
  
  if(!$mail-&gt;Send()) {
    echo 'Message was not sent.';
    echo 'Mailer error: ' . $mail-&gt;ErrorInfo;
  } else {
    echo 'Message has been sent.';
  }
  ?&gt;
  </code></pre>
  
  <p>END OF CODE.</p>