Since May 30, Gmail has tightened security when sending emails via SMTP. Now you need to do some configuration to create a password specific to the app you are sending emails from. If you want to continue sending emails via SMTP with your Gmail address, follow the procedure below.
Create and use App Passwords
If you use 2-Step-Verification and get a "password incorrect" error when you sign in, you can try to use an App Password.
- Go to your Google Account.
- Select Security.
- Under Signing in to Google, select App Passwords. You may need to sign in. If you don’t have this option, it might be because:
- 2-Step Verification is not set up for your account.
- 2-Step Verification is only set up for security keys.
- Your account is through work, school, or other organization.
- You turned on Advanced Protection.
- At the bottom, choose Select app and choose the app you’re using ➔ Select device and choose the device you’re using ➔ Generate.
- Copy the App Password and paste it into your software’s SMTP configuration. The App Password is the 16-character code in the yellow bar on your device.
- Tap Done.
Tip: Most of the time, you’ll only have to enter an App Password once per app or device, so don’t worry about memorizing it.