Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Troubleshooting

WP Mail SMTP Not Sending Emails: Causes and How to Fix It

WP Mail SMTP Not Sending Emails: Causes and How to Fix It

Short answer

WP Mail SMTP usually stops sending because the mailer settings are wrong, your host blocks SMTP ports, the provider rejects the login or From address, or another plugin overrides the mail setup. Run the email test under the plugin's Tools menu and follow its error message first.

Key takeaways

  • The built-in email test shows which part of the setup is failing.
  • Port 587 uses TLS and port 465 uses SSL for most SMTP providers.
  • If your host blocks SMTP, switch to an API-based mailer.
  • Use a verified From address and turn on Force From Email.
  • Missing SPF, DKIM or DMARC records send mail to spam or get it rejected.

Why is WP Mail SMTP not sending emails?

WP Mail SMTP usually fails because the mailer settings are wrong, the host blocks SMTP ports, the provider rejects the login or sender address, or another plugin overrides the mail setup.

WP Mail SMTP replaces WordPress's default mail function with a proper connection to an email provider. When it works, password resets, form notifications and store emails arrive reliably. When it does not, the cause is almost always one of the settings between your site and the provider.

If you are not sure what the plugin does, our explainer on what WP Mail SMTP is covers the basics.

Common symptoms:

  • The email test fails with an error
  • The test succeeds but form emails never arrive
  • Emails land in spam
  • Emails stopped after a host or DNS change
  • Some emails send and others do not

What does the email test tell you?

Run the test under WP Mail SMTP > Tools > Email Test, because its result and error message point straight to the part of the setup that is failing.

Send a test to an address you control, ideally on a different domain from your site. Then read the result:

ResultWhat it suggests
Error about authenticationWrong username, password, API key or expired connection
Error about connection or timeoutHost blocks the port, wrong host or port
Error about senderFrom address not verified with the provider
Success but no emailSpam filtering or provider-side block

The plugin often adds advice under the error. Follow it before trying anything else.

If the error mentions authentication, our guide on fixing SMTP could not authenticate goes deeper.

Are your mailer settings correct?

Open WP Mail SMTP > Settings and check the mailer, the From email, and the host, port, encryption and login details, since one wrong value stops every email.

For the Other SMTP mailer, the usual combinations are:

EncryptionPort
TLS (STARTTLS)587
SSL465

Use the exact host name your provider gives you. Copy the username and password carefully. Many providers use the full email address as the username.

For API-based mailers, such as transactional email services, check the API key and any sending domain or region setting. A key from the wrong region or a deleted key fails right away.

WP Mail SMTP's documentation has setup guides for each mailer. Follow the one for yours step by step, since small details differ.

After changing any setting, save it and run the email test again. Change one thing at a time so you know which fix worked.

Is your host blocking SMTP ports?

Many hosts block outgoing connections on SMTP ports to fight spam, so a connection timeout often means the host, not your settings, is the problem.

Test by switching between ports 587 and 465. If both time out, ask your host whether outgoing SMTP is allowed.

If the host blocks SMTP, use an API-based mailer instead. These send through HTTPS, which hosts almost never block. Most transactional email providers offer an API option in WP Mail SMTP.

Some hosts require you to use their own mail server. Our guide on setting up email with WordPress hosting covers that route.

Is the Gmail or Microsoft connection still valid?

Google and Microsoft connections can expire or be revoked, and plain password logins often fail, so reconnect the account or use an app password where your provider supports one.

Gmail and Google Workspace accounts work best with the plugin's Google mailer, which uses OAuth. If you changed your Google password or removed the app's access, you need to reconnect.

If you use Gmail through Other SMTP, Google usually requires an app password with 2-Step Verification turned on. Your normal password will be rejected.

Microsoft 365 and Outlook accounts have similar rules. Some mailer options are only in the paid version, so check the plugin's current feature list.

Does the From email match your sending domain?

Providers reject or flag mail sent from addresses they have not verified, so the From email must belong to a domain set up with your mail provider.

If your site sends as wordpress@yourdomain but your provider only knows hello@yourdomain, emails may fail or go to spam.

In WP Mail SMTP settings:

  1. Set the From email to an address verified with your provider
  2. Turn on Force From Email so plugins cannot change it
  3. Set a From name that people recognize

Form plugins often set their own From address. Force From Email keeps it consistent. Use the reply-to field in your form settings if you want replies to go to the person who filled in the form.

Are SPF, DKIM and DMARC set up?

Missing or wrong DNS records make providers reject your email or send it to spam, even when WP Mail SMTP reports success.

Your mail provider gives you SPF and DKIM records to add to your domain's DNS. DMARC adds a policy on top. Major inbox providers now expect all three for bulk senders, as Google's email sender guidelines explain.

Check that:

  • You have only one SPF record for the domain
  • The SPF record includes your mail provider
  • DKIM is verified in your provider's dashboard
  • A DMARC record exists, even if it only monitors

Our guide on setting up SPF, DKIM and DMARC for WordPress email walks through each record.

Could another plugin be overriding WP Mail SMTP?

Yes, other SMTP plugins, form plugins with their own mail settings, or custom code that changes PHPMailer can override WP Mail SMTP and break sending.

Run only one SMTP plugin. Two plugins changing the same mail settings is a common cause of random failures.

Also check:

  • Form plugins set to use their own SMTP
  • Security plugins that limit outgoing requests
  • Custom code that hooks into wp_mail or PHPMailer

WordPress sends mail through the wp_mail function, and plugins can filter it. Our guide on fixing a plugin conflict shows how to find the plugin responsible.

How do you find out which emails failed?

Use the plugin's debug events and, on paid plans, the email log, to see exactly which emails failed, when, and with what error.

WP Mail SMTP records errors in its debug events area under Tools. Turn it on, reproduce the problem, and read the entries.

The paid version adds a full email log with every message sent, which is useful for stores and membership sites. Check the plugin's site for current plan features.

Your mail provider's dashboard is the other half. Most transactional services show deliveries, bounces and blocks for each message.

A bounce usually means the receiving server refused the message, often because of DNS records or a bad address. A block usually means your provider stopped the message itself, for example because the sending domain is not verified or the account is on hold.

What if test emails work but form emails do not?

If the test succeeds but form or store emails fail, the problem sits in that plugin's notification settings, such as an empty To field or a From address WP Mail SMTP is not forcing.

Open the form's notification settings and check the recipient, From address and conditions. A notification can be disabled, set to an old address, or limited by a condition that never matches.

Our guide on fixing a contact form not sending email covers form-specific checks for the most popular plugins.

Finally, send a real test through the form yourself after every change. Use an address on a different domain, and check the spam folder as well as the inbox.

Frequently asked questions

Why does WP Mail SMTP say the test email was sent but nothing arrives?

The provider accepted the message, but the receiving inbox filtered or blocked it. Check spam folders, your provider's delivery logs, and your SPF, DKIM and DMARC records.

Which port should I use with WP Mail SMTP?

Most providers use port 587 with TLS or port 465 with SSL. Use the values your provider lists. If both ports time out, your host may block SMTP, so switch to an API-based mailer.

Can I use my Gmail password in WP Mail SMTP?

Usually not. Use the plugin's Google mailer, which connects through OAuth, or create a Google app password if you use the Other SMTP option. Normal account passwords are typically rejected.

Can I run WP Mail SMTP with another SMTP plugin?

You should not. Two plugins changing the same mail settings often conflict and cause random failures. Keep one SMTP plugin active and remove the others.

Does WP Mail SMTP keep a log of sent emails?

The free version records errors in its debug events. A full email log of every message is part of the paid version. Your mail provider's dashboard also shows delivery history.

Sources

  1. WP Mail SMTP plugin WordPress.org Plugins
  2. WP Mail SMTP documentation WP Mail SMTP
  3. wp_mail() WordPress Developer Resources
  4. Sign in with app passwords Google Account Help
  5. Email sender guidelines Google Workspace Admin Help

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.