title: Laravel Gmail not working, "Username and Password not accepted. Learn more..."
body: <p>When I try to send an e-mail through my website running Laravel 4, I get this exception:</p>
  
  <pre><code>{"error":{"type":"Swift_TransportException","message":"Expected response code 250 but got code \"535\", with message \"535-5.7.8 Username and Password not accepted. Learn more at\r\n535 5.7.8 http:\/\/support.google.com\/mail\/bin\/answer.py?answer=14257 y70sm14744455qgd.3 - gsmtp\r\n\"","file":"\/var\/www\/vendor\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Transport\/AbstractSmtpTransport.php","line":386}}
  </code></pre>
  
  <p>Here is my mail config:</p>
  
  <pre><code>return array(
    'driver' =&gt; 'smtp',
    'host' =&gt; 'smtp.gmail.com',
    'port' =&gt; 465,
    'from' =&gt; array('address' =&gt; 'mymail@gmail.com', 'name' =&gt; 'myname'),
    'encryption' =&gt; 'ssl',
    'username' =&gt; 'mymail@gmail.com',
    'password' =&gt; 'lol',
    'sendmail' =&gt; '/usr/sbin/sendmail -bs',
    'pretend' =&gt; false,
  );
  </code></pre>
  
  <p>I've tried the disable link i've found by googling this issue except it didn't make a difference.</p>
  
  <p>Is there a way to tell Google "stop blocking this IP, it's me" ?</p>