The mail tab under Settings displays the following fields:
As you set up an store application to synchronize with your Gmail account, a screen asks for your Gmail SMTP information.
Now you can test it . Go to Marketing > mail and try to send email to your customers.
Create & use App Passwords click the below link
You can read Microsoft support for more information about app password.