Gmail Setup for Email Sending:
To generate new App password for Gmail, follow these steps:
Go to your Gmail and click nine dots symbol which is between settings and your gmail picture to go to your account page.
In this page, on the left side of screen there is “Security” options, click it.
On the opened page, there is section called “Signing to Google”, to create new app password you should allow 2-Step verification.
After activated 2-Step verification, “App passwords” section will be pop up, click it.
In this page, Select app device for which you want to generate the app password.
Select “Mail” option and then select “Other(Custom name)“ for device.
Give new name for your custom device, for example My-first-example.
Then click “Generate” button to create new app password.