title: Failed to authenticate on SMTP server with username using 2 possible authenticators
body: <p>I've configured to gmail SMTP server to send email. Account less secure app turned ON, also <a href="http://www.google.com/accounts/DisplayUnlockCaptcha" rel="nofollow">Recapture</a> thing enabled. Here is the <code>mail.php</code> configuration.  </p>
  
  <p>This code working fine on hostgator server. But we have another server, mails are not sending from that server. What should I do now?  </p>
  
  <p><strong>Error image</strong></p>
  
  <p><a href="http://screencast.com/t/BSCurEEubPJV" rel="nofollow">http://screencast.com/t/BSCurEEubPJV</a></p>
  
  <pre><code>return array(    
      'driver' =&gt; 'smtp',
      'host' =&gt; 'smtp.gmail.com',
      'port' =&gt; 587,
      'from' =&gt; array('address' =&gt; 'xxx@gmail.com', 'name' =&gt; 'xxxxTeam'),
      'encryption' =&gt; 'tls',
      'username' =&gt; 'xxx@gmail.com',
      'password' =&gt; 'xx@123',    
      'sendmail' =&gt; '/usr/sbin/sendmail -bs',
      'pretend' =&gt; false,
  );
  </code></pre>