Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted : <p>I recently encountered a SwiftMail error while trying to send a mail through gmail.</p>

<pre><code> Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted.
</code></pre>

<p>I was trying to  send mail through my gmail and google thought that I was a spam(maybe because I was requesting too fast) I received a mail from them saying my account was access and I told them it was me. I was able to send mail without problem and it just occured now.</p>

<p>This is the contents of my env file.</p>

<pre><code>MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=talentscoutphil@gmail.com
MAIL_PASSWORD=mypasswordhere
MAIL_FROM=talentscoutphil@gmail.com
MAIL_NAME=talentscout
</code></pre>
