Troubleshooting WordPress email: a reference

A WordPress site’s password reset email never arrives. A WooCommerce order confirmation lands in the customer’s spam folder. A contact form appears to submit, the admin notification was supposed to go to the business owner, and the business owner is on the phone saying it never came. The usual next move is a search like “WordPress not sending email,” and the usual next move after that is a long troubleshooting post listing twenty things to check in sequence.

This reference takes the diagnostic the other way around. There are only four places a WordPress email can fail: the plugin that intercepts the send, the way the server hands the message out, the external service doing the actual delivery, or the inbox on the other end deciding whether to accept it. The symptom (silent send, bounce, spam placement) does not say which of the four places failed, and that is the whole reason WordPress email problems so often persist across multiple attempts at a fix. The method here is to find the place first, then look at the right thing. The full procedural walkthrough is troubleshoot WordPress email; the chain this diagnosis sits inside is how email works on WordPress.

The four stages, in order

  1. The sending plugin layer. A mailer plugin (WP Mail SMTP, FluentSMTP, Post SMTP) intercepts wp_mail() and hands the message to the configured transport. A failure here looks like: the plugin’s log shows no entry for the expected message, or the entry shows a configuration-side error (authentication rejected, host unreachable).
  2. The transport. Default WordPress hands the message to PHP’s mail() function, which delegates to the server’s local MTA. A failure here looks like: wp_mail() returns false, or returns true but nothing arrives. mail() returns true once the server’s mail program accepts the message, and PHP’s manual notes that acceptance does not mean the mail will reach its destination.
  3. The relay’s outbound infrastructure. The external email service accepts the message, authenticates it against your sending domain’s DNS records, and attempts delivery. A failure here looks like: the provider’s dashboard shows the message as rejected (bad credentials, suspended account, over quota) or the provider sends it but the authentication records on your domain do not back it up.
  4. The receiver. Gmail, Outlook, Yahoo, or a corporate mail server accepts, defers, bounces, or files the message in spam. A failure here looks like: the provider’s log shows the message sent, but the recipient reports nothing arrived, or finds it in their spam folder.

Diagnosis moves top-down. If stage 1 shows no record of the message, start there: find out why the message never reached the mailer plugin’s log before you look further down. If stage 1 shows the message was handed off but stage 3 shows it rejected, the fix is in stage 3 (credentials, DNS, provider status). If stage 3 shows the message delivered but the recipient never got it, the fix is in stage 4 (authentication records, reputation, content).

Where to look at each stage

Stage 1. The mailer plugin’s log. FluentSMTP, Post SMTP, and WP Mail SMTP Pro all keep a per-message log; the free WP Mail SMTP plugin does not. A missing entry has more than one cause. The sending code may not have called wp_mail(): it never ran, a condition or another plugin stopped it, or it calls PHP’s mail() directly. The send may have stopped before the mailer plugin wrote its entry: FluentSMTP writes the entry after the send attempt, so a message rejected earlier, on an invalid From address for example, leaves none. Or the mailer plugin is not active for the message’s send path.

Stage 2. Only relevant if no mailer plugin is configured. The failure signal is wp_mail() returning false. WordPress does not retry and does not log the failure unless a plugin hooks wp_mail_failed. The wp_mail_failed hook debugging guide covers the hook.

Stage 3. The relay’s own dashboard. Postmark, SendGrid, Mailgun, and SMTP2GO each expose message-level activity. Their event labels differ: Postmark and SendGrid show delivery and bounce events; Mailgun uses delivered and failed; SMTP2GO uses Delivered, Hard Bounce, and Soft Bounce. Amazon SES shows per-message delivery status and mailbox-provider responses in the Messages tab of Virtual Deliverability Manager (SES’s deliverability dashboard), which has to be turned on. The default SES console shows account-wide bounce and complaint counts and rates, not individual messages. Without the Messages tab, the operator learns of a bounce from a notification, which is an email by default. A message that appears in stage 1’s log as “sent” but is absent from the provider’s per-message activity may not have reached the provider; check the provider’s event history and the credentials or endpoint before concluding that it didn’t. A message present at the provider may include a bounce reason or SMTP response code; decoding SMTP codes is covered in reading SMTP bounce codes.

Stage 4. Receiver-side. Gmail’s authentication codes each report a different failure: 5.7.27 is SPF, 5.7.30 is DKIM, 5.7.40 is a missing DMARC record or policy, and 5.7.26 is one of three, which the text after the code tells apart. Yahoo describes its 553 and 554 replies as permanent failures, with failed DMARC or DKIM checks among the causes. For Microsoft 365, the 5.7.1 family carries three unrelated meanings distinguishable only by the accompanying prose. The SMTP field manual decodes the codes WordPress senders actually see.

Common WordPress-specific failure modes

Three failure shapes account for most WordPress email trouble tickets:

  • The host’s path did not deliver the message. Stage 2 failure. With no mail program on the server, PHP’s mail() returns false, as PHP 8.3.6 did in a test on 2026-11-25, and wp_mail() returns false too. By inference from PHP’s mail() return value and AWS’s port 25 restriction, a mail program can accept a message and make wp_mail() return true even if the host cannot then send it on, for example where outbound port 25 is blocked, as AWS EC2 blocks it to public addresses by default. The fix is a mailer plugin routing through an external service.
  • The plugin bypassed wp_mail(). Older contact-form plugins and some payment-gateway notification code call PHP’s mail() directly, skipping the mailer plugin entirely. Diagnostic signal: the mailer plugin’s log shows no entry for a message the user expects to see, while the site’s other mail is logged. A missing entry has other causes too (see stage 1), so search the sending plugin’s code for direct mail() calls before replacing it. The fix is either a plugin update or a replacement plugin that routes through wp_mail().
  • The authentication records do not align with the From: domain. Stage 4. The provider sends the message, Gmail checks SPF and DKIM against the From: domain, neither aligns, and DMARC fails. The domain’s DMARC policy and Gmail’s own handling then decide whether the message is delivered, marked as spam or rejected. The fix is DKIM alignment on the sending domain (provider’s custom-signature setup) and an SPF entry that covers the provider’s sending hosts. See SPF and DMARC.

When the symptom is “no error anywhere”

A send that produces no log entry, no bounce, no spam placement, and no inbox arrival points to stage 1 or stage 2. With a mailer plugin installed, the message did not reach its log: the sending code did not call wp_mail() (it never ran, something stopped it, or it calls mail() directly), or the send stopped before the plugin logged it, as stage 1 describes. With no mailer plugin, there is no mailer log to read. PHP’s mail() returns true once the message is accepted for delivery, but that does not prove it reached the intended destination. For the first case, confirm the trigger fired, then search the sending plugin’s code for direct mail() calls. For the second, install a mailer plugin and send a test; if that arrives, the test shows that the mailer’s route can deliver, but it does not identify why the earlier message did not arrive.

The WordPress email FAQ covers the top-of-funnel questions this reference does not. The full procedural walkthrough for a live incident is troubleshoot WordPress email.

Corrections
  • 2026-11-26: an earlier version said that when a send leaves no trace and wp_mail() returned true, the server’s local mail program lost the message, and that a test sent through a mailer plugin shows whether that is what happened. mail() returning true means only that the message was accepted for delivery. A later test shows only that the mailer’s route can deliver, not why the earlier message did not arrive.
  • 2026-11-26: an earlier version said that no entry in the mailer plugin’s log means wp_mail() was not called because a plugin bypasses it, or the mailer plugin is not active, and that the stages after the first never ran. No entry can also mean the sending code never ran or was stopped, or that the send stopped before the mailer plugin wrote its entry. A plugin that calls mail() directly does reach the server’s mail path.
  • 2026-11-26: an earlier version said that default wp_mail() on a host with no mail server returns true while the message vanishes, and that most managed hosting fails this way. With no mail program, PHP’s mail() and wp_mail() both return false. The claim about most managed hosting had no source.
  • 2026-11-26: an earlier version said a message that fails DMARC at Gmail bounces or lands in spam. The domain’s DMARC policy and Gmail’s own handling decide the outcome.
  • 2026-11-25: an earlier version gave Gmail’s 5.7.26, 5.7.27, 5.7.30 and 5.7.40 as Yahoo codes too, with one shared meaning. They are Gmail’s, and each reports a different failure.
  • 2026-11-05: an earlier version said WP Mail SMTP records every attempted send without saying the log needs Pro.
  • 2026-11-04: an earlier version listed Amazon SES among the relays that show a status per message in their dashboard. The default SES console shows account-wide counts and rates; the per-message view is in Virtual Deliverability Manager and has to be turned on.
Troubleshooting WordPress email: a reference details
Short Definition
Diagnosing WordPress email failures by locating the stage of the delivery chain that broke (the sending plugin, the transport, the relay, or the receiver), rather than by the symptom alone. The stage determines the fix.
Related Terms
email-explained-from-first-principles, smtp-field-manual, wordpress-email-faq