To generate an app password, first go to the 'Settings' section of your email service. Within this, find and select the 'Security' tab.
Here, you'll see an option for 'App Passwords':
Click on the 'Generate Password' button to begin the process. Follow the prompts to create a unique password for your app.