...
- In Browser log into Gmail with your account using 2-Step authentication.
- Navigate to https://security.google.com/settings/security/apppasswords
- In 'select app' choose 'custom', give it an arbitrary name and press generate
- It will give you a 16 chars token.
- User Use this the 16 chars token as a password in the Password field in Email definitions
...