How to setup Gmail with 2FA as SMTP authentication account ?

  1. Log-in into Gmail with your account.
  2. App passwords.
  3. In select app choose custom, give it an arbitrary name and press generate.
  4. It will give you 16 chars token.
  5. Use the token as password in combination with your full Gmail account and two factor authentication will not be required.