Seeing SMTP Error: Could not authenticate. in WP Mail SMTP means the mail server rejected your login. The most common causes are wrong mailer choice (OAuth vs “Other SMTP”), an invalid username/password or app password, the wrong encryption/port, blocked outbound SMTP ports, or a From Email that your provider hasn’t verified.
This guide gives you fast, copy-paste fixes for Gmail/Google Workspace, Microsoft 365/Outlook, and Other SMTP senders. Plus how to read the debug code (e.g., 535 5.7.8) and confirm the issue is solved.
I keep getting “SMTP Error: Could not authenticate.” in WP Mail SMTP. How do I fix it?
587 (most common)465Mismatches commonly trigger “Could not authenticate.”
587/465 if tests fail.Using “Other SMTP” with Gmail? Personal Gmail now requires 2-Step Verification + an App Password. Create an app password in your Google Account, then use it as the SMTP password. For Workspace, your admin may restrict SMTP. OAuth (Gmail mailer) is the safest route.
Tip: If you previously used “Other SMTP” with basic auth, M365 may block it. Move to the OAuth mailer.
smtp.sendgrid.net, 587 (TLS). Username apikey, password is your API key.smtp.postmarkapp.com, 587 (TLS). Use your server API creds.email-smtp.us-east-1.amazonaws.com), 587 (TLS). Use SMTP creds generated in SES.mail.yourdomain.com, 587 TLS with full mailbox username.Open WP Mail SMTP ▸ Tools ▸ Email Test and enable Debug Output. Look for the SMTP server reply:
535 5.7.8 Username and Password not accepted
535 5.7.3 Authentication unsuccessful
534 5.7.14 Please log in via your web browser and then try again.
530 5.7.1 Authentication required
Authentication errors happen before sending. Once you’re sending, add SPF/DKIM/DMARC for the best inbox placement (follow your email provider’s DNS guide).
Helpful references: WP Mail SMTP · Google App Passwords · Microsoft SMTP Auth
I’m on Gmail and still see “535 5.7.8 Username and Password not accepted” using Other SMTP. What now?
Switch to the Gmail (OAuth) mailer. Google is phasing out basic SMTP auth. In WP Mail SMTP ▸ Settings ▸ Mailer, choose Gmail, connect your account, and set From Email to that same mailbox. Save and send a test. If you must use “Other SMTP,” enable 2-Step Verification and create an App Password, then use that as your SMTP password.
Microsoft 365 here, auth fails unless I use my web host’s SMTP. Any M365-specific fix?
Use the Microsoft 365/Outlook (OAuth) mailer instead of “Other SMTP.” Reconnect the account and have your tenant admin grant consent if prompted. Set From Email to the same mailbox (or one you can “send as”). Save and test. Basic SMTP may be blocked by policy. OAuth avoids that and is the recommended method.
WP Assistant is a free tool created by Atiba Software, a WordPress design and development company located in Nashville, TN. If you need more personalized WordPress assistance let us know, and we’ll get back to you ASAP!