Password reset email getting 530 5.7.1 Authentication required
<p>When I try to send a password reset email, I get the following error:</p>

<pre><code>Swift_TransportException in AbstractSmtpTransport.php line 383:
Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required"
</code></pre>

<p>I'm not sure what's wrong here. I've looked at Stack Overflow and Laracasts and found similar problems. I've tried two different email addresses and servers. But I'm getting the same error.</p>

<p>Here's my .env file:</p>

<pre><code>MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=xx@gmail.com
MAIL_PASSWORD=[password]
MAIL_ENCRYPTION=tls
</code></pre>

<p>Here is my mail.php file:</p>

<pre><code>'driver' =&gt; env('MAIL_DRIVER'),
'host' =&gt; env('MAIL_HOST'),
'port' =&gt; env('MAIL_PORT'),
'from' =&gt; [
   'address' =&gt; 'xx@gmail.com',
   'name' =&gt; 'XX',
],
'encryption' =&gt; env('MAIL_ENCRYPTION'),
'username' =&gt; env('MAIL_USERNAME'),
'password' =&gt; env('MAIL_PASSWORD'),
'sendmail' =&gt; '/usr/sbin/sendmail -bs',
</code></pre>

<p>Any ideas what I've got wrong here?</p>