GMail for Apps

In order to use a Gmail account in an app, like a web app, you need to generate a password as described below. This is a 16 character password.

App Passwords required in Apps.

  1. Go to https://myaccount.google.com/security.
  2. Scroll down to "How you sign in to Google".
  3. Enable 2-Step Verification.
  4. Add App Password. You'll need to give it a name.
  5. Use the generated password in your code.

You can also use direct link https://myaccount.google.com/apppasswords