title: Is there a work around google disabling "Less secure apps"?
body: <p>So since the 31 of may google has disabled the option for &quot;Less secure apps&quot;, so I have been using the Java mail API, and since the update i can no longer send emails using the Gmail smtp.</p>
  <p>This is the error I'm getting:</p>
  <pre><code>javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at
  535 5.7.8  https://support.google.com/mail/?p=BadCredentials n13-20020a5d400d000000b0020ff7246934sm4970874wrp.95 - gsmtp
  </code></pre>
  <p>I switched to an outlook mail and it seems to work fine, but i was wondering if there is a way to use a Gmail account</p>
  <p><a href="https://support.google.com/accounts/answer/6010255?hl=en" rel="noreferrer">Less secure apps &amp; your Google Account</a></p>