I tried to login to my Gmail account using the default Mail app. But getting error like Invalid credentials.
You need to create an app password and use that to log in in elementary.
Follow these instructions to create a new 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 using and then Select device and choose the device you’re using and then Generate.
- Follow the instructions to enter the App Password. The App Password is the 16-character code in the yellow bar on your device.
- Tap Done.
Now simply go to online accounts and use that newly-created password to authenticate.