Your Gmail address is your SMTP username; your app password is what you use instead of your Gmail password
When you set up Gmail in an email client like Outlook, Thunderbird, or Apple Mail, the program asks for an SMTP username and password. Your SMTP username is straightforward your full Gmail address — the one that ends in @gmail.com. The password is not your regular Gmail password. Instead, Google requires you to create a separate app password, a 16-character code that only works with third-party email programs.
This two-step process exists because Gmail blocks regular passwords from being used in outside apps for security reasons. If you try to use your actual Gmail password in an email client, the connection will fail. You must generate an app password first, and that's what goes into the SMTP password field.
Key Takeaways
- Your SMTP username is your complete Gmail address, such as yourname@gmail.com.
- Your SMTP password is a 16-character app password you create in your Google Account settings, not your regular Gmail password.
- You can only create an app password if you have two-factor authentication turned on in your Google Account.
- Google generates the app password for you — you do not choose it — and you can create multiple passwords for different devices or programs.
How to create an app password in your Google Account
Start by signing into your Google Account at myaccount.google.com. On the left side, click Security. Scroll down until you see App passwords — it appears only if you have two-factor authentication enabled. If you do not see it, you will need to turn on two-factor authentication first.
Click App passwords. Google will ask you to select what kind of app you are using (Mail, Calendar, Contacts, or Notes) and what device (Windows, Mac, iPhone, Android, or other). After you select both, Google generates a 16-character password. Copy this entire password and paste it into the SMTP password field in your email program. Do not try to memorize it or type it by hand — copy and paste to avoid mistakes.
Google will show you the password only once. If you close the window without copying it, you can return to App passwords and delete that one, then create a new one. Each app password works indefinitely until you delete it from your Google Account settings.
What to do if you do not see the App passwords option
The App passwords option only appears if two-factor authentication is already on. If you do not see it, you need to enable two-factor authentication first. Go to myaccount.google.com, click Security on the left, and look for 2-Step Verification. Click it and follow Google's steps to turn it on. You will need to confirm your identity using your phone.
After two-factor authentication is on, return to the Security page and the App passwords option will appear. Then follow the steps above to create your app password.
Where the SMTP username and password go in your email program
When you add your Gmail account to an email client, the program usually asks for incoming and outgoing mail server settings. The SMTP server is the outgoing mail server — it handles sending email. For Gmail, the SMTP server address is smtp.gmail.com and the port is usually 587 with TLS encryption.
In the username field, enter your full Gmail address. In the password field, paste the 16-character app password you created. Do not use your regular Gmail password. Once you enter both, the email program should connect and begin syncing your Gmail messages.
Creating multiple app passwords for different devices
You can create as many app passwords as you need. If you use Gmail on your phone, your laptop, and your tablet, you can create a separate app password for each one. This way, if you need to remove one device from your account, you can delete just that app password without affecting the others.
Go back to App passwords in your Google Account settings whenever you add Gmail to a new device. Select the device type and app type, and Google will generate a new 16-character password. Each one works independently.
Deleting or revoking an app password
If you stop using an email program or device, you can delete its app password from your Google Account. Go to myaccount.google.com, click Security, then App passwords. You will see a list of all the app passwords you have created, labeled by device and app type. Click the trash icon next to any password to delete it. That password will no longer work in any program.
Deleting an app password does not affect your Gmail account or any other passwords. It only stops that particular email program or device from accessing your Gmail.
Frequently Asked Questions
Can I use my regular Gmail password as my SMTP password?
No. Gmail blocks regular passwords from working in third-party email programs for security. You must create an app password. If you try to use your regular password, the email program will show a connection error or "invalid credentials" message.
What if I forgot my app password?
You cannot retrieve a forgotten app password. Go to myaccount.google.com, click Security, then App passwords. Find the password you used and delete it by clicking the trash icon. Then create a new one and copy the new 16-character code into your email program.
Do I need a different app password for each email program?
No. You can use the same app password in multiple programs if you want. However, creating separate passwords for each device or program makes it easier to revoke access to one without affecting the others.
Why does Google require two-factor authentication to create an app password?
Two-factor authentication adds a security layer to your account. Google requires it before allowing app passwords because app passwords are less find than your main password — they only work with email and cannot change your account settings. Requiring two-factor authentication first ensures your main account is already protected.