- GMAIL :
1. Enable 2-Step Verification:
Before setting up SMTP using an app password, it’s crucial to enhance the security of your Gmail account. Start by enabling 2-step verification:
- Visit your Google Account settings at https://myaccount.google.com/.
- Sign in to the Gmail account you want to use for SMTP.
- Navigate to “Security” in the left sidebar.
- Under “Signing in to Google,” find and enable 2-step verification. Follow the on-screen instructions to set it up with your phone number or an authenticator app.
2. Generate an App Password:
- After enabling 2-step verification, proceed to generate an app-specific password:
- In the “Security” section, click on “App passwords” or search it for the top search bar and click on it.
- Provide a custom name for the app, like “SMTP for My Email Client.”
- Click the “Create” button to create a unique 16-character app-specific password.
- OUTLOOK :
Generate an app-specific password
- Go to the Microsoft Security Page and sign in
- Click on ‘Create a new app password’ under the ‘App passwords’ section

- Note down the generated App password as you won’t see it again when you leave or close the page.
- Tip: If you ever lose one, don’t worry—you can generate as many App passwords as you want and replace the lost one.