title: laravel 5.4 : Expected response code 250 but got code "530", with message "530-5.5.1 Authentication Required. Learn more at
body: <p>i'm testing password reset in laravel 5.4 and i got this error :</p>
  
  <pre><code>    Swift_TransportException in AbstractSmtpTransport.php line 383:
  Expected response code 250 but got code "530", with message "530-5.5.1 Authentication Required. Learn more at
  530 5.5.1 https://support.google.com/mail/?p=WantAuthError j71sm516784wmd.12 - gsmtp
  "
  </code></pre>
  
  <p>here is my <code>.env</code> file</p>
  
  <pre><code>MAIL_DRIVER=smtp
  MAIL_HOST=smtp.gmail.com
  MAIL_PORT=465
  MAIL_USERNAME=myemail@gmail.com
  MAIL_PASSWORD=mypassword
  MAIL_ENCRYPTION=ssl
  </code></pre>
  
  <p>and my <code>mail.php</code></p>
  
  <pre><code>'driver' =&gt; env('MAIL_DRIVER', 'smtp'),
  
  'host' =&gt; env('MAIL_HOST', 'smtp.gmail.com'),
  
  'address' =&gt; env('MAIL_FROM_ADDRESS', 'myemail@gmail.com'),
  
  'name' =&gt; env('MAIL_FROM_NAME', 'from me'),
  
  'encryption' =&gt; env('MAIL_ENCRYPTION', 'ssl'),
  
  'username' =&gt; env('myemail@gmail.com'),
  
  'password' =&gt; env('mypassword'),
  </code></pre>
  
  <p>i Tryed to turn on "less secure apps" of my gmail account.nothing change<br>
  How do I resolve this error message?
  could anyone help me please !!!</p>