title: Laravel :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 Recapture  enabled. Here is the mail.php configuration.</p>
  
  <p>This code working fine on local server. But when i tried to in godaddy server i saw the following Error :</p>
  
  <pre><code> (1/1) Swift_TransportException Failed to authenticate on SMTP server
   with username "xxxx@gmail.com" using 2 possible authenticators in AuthHandler.php (line 181)
  </code></pre>
  
  <blockquote>
    <p>.env (mail part)</p>
  </blockquote>
  
  <pre><code>MAIL_DRIVER=smtp
  MAIL_HOST=smtp.gmail.com
  MAIL_PORT=587
  MAIL_USERNAME=xxxx@gmail.com
  MAIL_PASSWORD=xxxxxx
  MAIL_ENCRYPTION=tls
  </code></pre>
  
  <blockquote>
    <p>Mail.php</p>
  </blockquote>
  
  <pre><code>return [
      'driver' =&gt; env('MAIL_DRIVER', 'smtp'),
      'host' =&gt; env('MAIL_HOST', 'smtp.gmail.com'),
      'port' =&gt; env('MAIL_PORT', 587),
      'from' =&gt; [
      'address' =&gt; env('MAIL_FROM_ADDRESS', 'xxxx@gmail.com'),
      'name' =&gt; env('MAIL_FROM_NAME', 'xxxx'),
      ],
  
  
      'encryption' =&gt; env('MAIL_ENCRYPTION', 'TLS'),
      'username' =&gt; env('MAIL_USERNAME'),
      'password' =&gt; env('MAIL_PASSWORD'),
      'sendmail' =&gt; '/usr/sbin/sendmail -bs',
      'pretend' =&gt; false,
  </code></pre>
  
  <p>What should I do now?</p>