---
title: "Gmail keeps asking for your password in a mail app"
description: "Gmail does not accept your Google password in mail apps. Use Sign in with Google or an app password, and fix the \"Username and Password not accepted\" error."
url: https://onesend.email/fix/gmail-password-not-accepted/
---
# Gmail keeps asking for your password in a mail app

Gmail no longer accepts your Google account password from mail apps. Sign in with Google if the app offers it, or turn on 2-Step Verification and use an app password. This also fixes "535 Username and Password not accepted".

## Use an app password

1. Turn on **2-Step Verification** in your Google Account (Security).
2. Open **myaccount.google.com/apppasswords**, give the password a name (such as the app's name) and create it.
3. Copy the 16-letter password and paste it into your mail app as the password, with your full Gmail address as the username.

## Server settings

- Incoming: `imap.gmail.com`, port 993, SSL/TLS
- Outgoing: `smtp.gmail.com`, port 465 (SSL/TLS) or 587 (STARTTLS)

In the OneSend Mac app, choose **Add account**, pick the provider, and paste the app password where it asks for a password. OneSend fills in the server names and ports for the providers it knows.

If the app password option is missing, see [Gmail app passwords option is missing](/fix/gmail-app-passwords-missing/).
