---
title: "SMTP error 535: authentication failed when sending"
description: "SMTP 535 (5.7.8) means the outgoing server rejected your username or password. Why your normal password stops working in mail apps, and how to fix it."
url: https://onesend.email/fix/smtp-535/
---
# SMTP error 535: authentication failed when sending

535 means the outgoing server rejected the username or password your mail app sent; RFC 4954 defines 535 5.7.8 as "authentication credentials invalid". With Gmail, iCloud, Yahoo and AOL the usual fix is an app password instead of your normal password.

## Why it happens

- **Your provider no longer accepts your normal password** from mail apps. Gmail, iCloud, Yahoo, AOL and Fastmail need an app password (or the provider's own sign-in page), and Outlook.com needs Microsoft's sign-in.
- **The username is wrong**: most providers want the full email address.
- **The password changed**, or the app password was revoked.
- **Too many failed attempts**: some providers lock sign-in for a while.

## How to fix it

1. Create an app password at your provider (see the guides for [Gmail](/fix/gmail-password-not-accepted/), [iCloud](/fix/icloud-password-not-accepted/) and [Yahoo](/fix/yahoo-app-password/)).
2. Enter it as the password for **both** incoming and outgoing servers.
3. Check the outgoing server, port and security with the [530 5.7.0 guide](/fix/smtp-530-5-7-0/).

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.
