title: Expected response code 250 but got code "530", with message "530-5.5.1 Authentication Required
body: <p>I am trying to send an email verification for the registering users but I am getting the following error:</p>
  
  <blockquote>
    <p>Expected response code 250 but got code "530", with message "530-5.5.1
    Authentication Required. Learn more at\r\n 530 5.5.1 
    <a href="https://support.google.com/mail/?p=WantAuthError" rel="nofollow noreferrer">https://support.google.com/mail/?p=WantAuthError</a> v11sm5345109pgt.0 -
    gsmtp\r\n</p>
  </blockquote>
  
  <p>I have tried all the possible ways by enabling the "less secure" and other instructions but not understanding the error. please help me to sort out the problem.</p>
  
  <p>My <code>.env</code> file is :</p>
  
  <p><img src="https://i.stack.imgur.com/x5qB1.png" alt="enter image description here"></p>
  
  <p>My Controller:</p>
  
  <p><img src="https://i.stack.imgur.com/Qikuo.png" alt="enter image description here"></p>
  
  <p>My mail.php:</p>
  
  <pre><code>'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', 'myaccount@gmail.com'),
          'name' =&gt; env('MAIL_FROM_NAME', 'Example'), ],
  'encryption' =&gt; env('MAIL_ENCRYPTION', 'tls'),
  'username' =&gt; env('myaccount@gmail.com'),
  'password' =&gt; env('*******'),
  'sendmail' =&gt; '/usr/sbin/sendmail -bs',
  'pretend' =&gt; FALSE,
  </code></pre>