535 5.7.8 is a permanent SMTP reply meaning authentication failed (bad smtp credentials). 5.7.8 is "authentication credentials invalid." The SMTP server rejected your username/password (or app password/API key) when you tried to connect and send.
What 535 5.7.8 means
5.7.8 is "authentication credentials invalid." The SMTP server rejected your username/password (or app password/API key) when you tried to connect and send.
Common causes
Wrong username or password
Most commonThe SMTP credentials in your app or device are incorrect or out of date. The most common cause.
You need an app password, not your account password
CommonGmail, Microsoft 365, and others require an app-specific password or OAuth when 2FA is on — your normal password is rejected.
The account is disabled or SMTP auth is turned off
CommonSome providers disable basic SMTP auth by default (notably Microsoft 365), so it must be explicitly enabled.
How to fix 535 5.7.8
- 1
Re-enter the correct credentials
Double-check the SMTP username (usually the full email address) and password in your application settings.
- 2
Generate an app password
If your account uses 2FA, create an app-specific password (Gmail: App Passwords; Microsoft: app password or modern auth) and use that instead.
- 3
Enable SMTP AUTH on the mailbox
For Microsoft 365, ensure authenticated SMTP is enabled for the mailbox (it's off by default for security).
Confirm your domain is set up correctly
Most delivery failures — permanent or temporary — trace back to authentication or reputation. Run a free EmailHealth check to confirm SPF, DKIM, DMARC, blacklist status, and TLS are all healthy for your sending domain. If you send in volume, free daily monitoring will alert you before a small issue becomes a flood of bounces.