- Goto google security settings page.
- Under "Signing in to Google" select App Passwords. You have to enable 2-Step Verification for your account. Otherwise, you cannot see App Passwords.
- At the bottom, choose Select app and choose "Other (Custom Name)" and then press Generate.
- Copy 16-character code in the yellow bar.