WP Mail SMTP or Gmail SMTP Authentication Errors: Fix Steps
Most SMTP errors come from a wrong password type, blocked port or a missing app password.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Check
- Credentials. Gmail and Microsoft accounts with 2FA need an app password or OAuth, not the normal password.
- Host and port. For example 587 with TLS, or 465 with SSL. Make sure your host does not block them. See Port 25 Blocked or SMTP Connection Refused From Your Server or Network.
- From address must be allowed by the account.
- Authentication records (SPF, DKIM) match the service. See SPF, DKIM and DMARC.
- Use the plugin's email test and read the exact error.
- Check the debug log in the plugin.
Full setup: WordPress SMTP setup.
Related guides
- WooCommerce Password Reset Emails Not Arriving
- WooCommerce Order Emails Not Sending or Going to Spam
- WooCommerce Admin New Order Email or Notification Not Arriving
- Outlook 'Cannot Send Message' on Mobile Hotspot or Public Wi-Fi: Port Blocks
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.