> Every Protuno article: https://protuno.com/blog.md · Site map for AI agents: https://protuno.com/llms.txt

# WordPress Not Sending Email? Find the Layer That Fails

- Date: 23 November 2026
- Page: https://protuno.com/blog/wordpress-not-sending-email

When WordPress is not sending email, one of four layers is failing: the form, WordPress’s own mail function, the way the server sends mail, or your domain’s DNS records. Test them in that order and you will find which one, usually within 20 minutes. Most often the server has no working way to send mail, and switching to SMTP fixes it.

> **The short version**
> 
> 
> 
> **Test WordPress itself first:** request a password reset for your own account. If that email does not arrive either, the problem is not your form.
> 
> **By default WordPress hands mail to PHP’s mail function.** Many hosts block it, have no mail server behind it, or send it in a way inboxes distrust.
> 
> **Send through SMTP instead,** using a real mail service and any SMTP plugin.
> 
> **Then publish SPF, DKIM and DMARC** for your domain, so mail that is sent also gets delivered.

> **We tested this on a real WordPress site**
> We asked Echo, Protuno’s forms and email agent, to check a test site running in a container with no mail server, a common setup on cheap hosting and local development. The verdict: the site most likely cannot send a single email. PHP mail was the only route, the server had no sendmail program, there was no SMTP plugin, and the domain had no SPF, DMARC or MX records. Tested on WordPress 7.1.4 and PHP 8.3.32, 16 November 2026.

![SMTP check summary: mail transport PHP mail with no sendmail, SPF missing, DMARC missing, 0 MX records](https://protuno.com/blog/media/2026/11/wordpress-not-sending-email-mail-smtp-summary.webp)

*The real result: this site has no working way to send email.*

## Why WordPress Does Not Send Email

WordPress sends every email, from password resets to contact form notifications and order receipts, through one function, `wp_mail()`. By default that function hands the message to PHP’s `mail()`, which passes it to whatever mail program the server has. Three things go wrong:

- **There is no mail program at all.** Containers, some cloud servers and local setups have none, so the message goes nowhere. That was our test site.
- **The host blocks or limits PHP mail** to stop spam from hacked sites.
- **The mail leaves, but inboxes reject it** because it comes from a server that your domain never said could send for it.

The fix depends on which one you have, which is why you test layer by layer.

## Layer 1: Is The Form Sending At All?

If only form emails go missing, start with the form plugin’s notification settings:

1. Open the form and find its notification or mail settings.
2. Check the **To** address is right, with no typo and no old staff address.
3. Set the **From** address to an address on your own domain, such as `wordpress@yourdomain.com`. A From address on a free mail service, sent from your server, is one of the most common reasons mail is dropped.
4. Put the visitor’s address in **Reply-To**, not in From.
5. Send a test entry and check the spam folder too.

A form that says “Thank you, your message was sent” only means it handed the message to WordPress. It does not mean the email left. [Our guide to forms that fail silently](https://protuno.com/blog/wordpress-form-silent-failure) covers that gap.

![Contact Form Health Check summary: 0 form plugins, 0 forms, no SMTP plugin; notes that the site would send with plain PHP mail](https://protuno.com/blog/media/2026/11/wordpress-not-sending-email-mail-forms.webp)

*On our test site the form check found no forms yet, and warned that any future form would send with plain PHP mail.*

## Layer 2: Can WordPress Send Any Email?

Log out and use **Lost your password?** on the login page for your own account. This sends an email straight from WordPress, with no form plugin involved.

- **The reset email arrives:** WordPress can send. Go back to layer 1 and the form’s settings.
- **It does not arrive, even in spam:** the problem is below WordPress. Go to layer 3.
- **It arrives in spam:** mail leaves but is not trusted. Go to layer 4.

Also check the address WordPress sends admin notices to, under *Settings, General, Administration Email Address*. On our test site it was a free mail address on a different domain from the site, which is worth knowing when you test.

### Email works from your host but not from WordPress

If your hosting email account works fine but WordPress mail does not, the two are not the same route. Your mailbox uses your mail provider’s servers. WordPress uses PHP mail on the web server, which may have no mail program behind it. That is exactly what our test found: `php-mail-no-sendmail`, with the sendmail program missing.

![Technical detail from the SMTP check: transport.kind php-mail-no-sendmail, sendmail_path /usr/sbin/sendmail -t -i (binary missing)](https://protuno.com/blog/media/2026/11/wordpress-not-sending-email-mail-smtp-tech.webp)

*The technical line that names the problem.*

## Layer 3: Send Through SMTP Instead Of PHP Mail

SMTP means WordPress logs in to a real mail server and sends through it, the same way your email app does. It works even when the web server has no mail program, and inboxes trust it far more.

1. Choose a sending service: your mail provider’s SMTP, your host’s SMTP, or a transactional email service.
2. Install any SMTP plugin from the WordPress plugin directory.
3. Enter the SMTP host, the port (usually 587 with TLS), and the username and password or API key from your service.
4. Set the From address to one on your own domain.
5. Use the plugin’s test email feature, then repeat the password reset test from layer 2.

Store the SMTP password the way the plugin recommends, ideally as a constant in wp-config.php rather than in the database. From WordPress 7.2, plugins can also store such secrets encrypted with the new Secrets API.

## Layer 4: Fix Delivery With SPF, DKIM And DMARC

If mail is “sent but not received”, or lands in spam, the receiving server does not trust it. Three DNS records tell it your mail is genuine:

- **SPF**: What it says: Which servers may send mail for your domain; Where you set it: A TXT record at your DNS provider
- **DKIM**: What it says: A signature proving the mail was not changed; Where you set it: Your mail service gives you the record to add
- **DMARC**: What it says: What receivers should do when SPF or DKIM fail; Where you set it: A TXT record at _dmarc.yourdomain.com

Your sending service gives you the exact records to add. Start DMARC at `p=none` so nothing is blocked while you check reports, then tighten it. Our test domain had no SPF and no DMARC record, and the check flagged both.

![Findings: no SPF record, no DMARC record, and a note that the test email was not sent so delivery and spam score were not measured](https://protuno.com/blog/media/2026/11/wordpress-not-sending-email-mail-smtp-findings.webp)

*SPF and DMARC findings from the real run, and an honest note about what was not measured.*

Two common traps: an SPF record with too many lookups stops working, and a DKIM record with the wrong selector is never found. [SPF too many lookups](https://protuno.com/blog/spf-too-many-lookups) and [the DKIM selector check](https://protuno.com/blog/dkim-selector-check) cover both, and [our deliverability guide](https://protuno.com/blog/wordpress-email-deliverability) explains alignment.

## Special Cases

- **Password reset and new user emails not sending:** these come straight from WordPress, so they are the layer 2 test. If they fail, fix layer 3.
- **WooCommerce order emails not sending:** check each email is enabled under the store’s email settings first, then test layers 2 to 4. Order emails go through the same `wp_mail()`.
- **Emails not reaching Gmail or Outlook:** almost always layer 4. Large inbox providers expect SPF, DKIM and DMARC.
- **Mail stopped after a host move:** the new server may have no mail program, or block outgoing mail. Set up SMTP.

## When It Is Not WordPress

- **Only one recipient misses mail.** Their mailbox may be full, or their provider filters it. Ask them to check spam and safe-list your address.
- **Your domain or server is on a blacklist.** A hacked site that sent spam can cause this. See [how to tell if your site is hacked](https://protuno.com/blog/is-my-wordpress-site-hacked).
- **The sending service rejected the login.** An expired password or API key stops all mail. The SMTP plugin’s log usually shows the error.

## Let A Super Agent Test It

Protuno is Super Agents for WordPress: six AI agents you use from Claude, Claude Code, Codex or Cursor, each working from written playbooks and a Brain for each site. Echo, the forms and email agent, runs two playbooks for this:

- [Contact Form Health Check](https://protuno.com/playbooks/contact-form-health-check) finds form plugins and forms, their From address and recipient, and whether an SMTP plugin is in place. It only reads.
- [SMTP Deliverability Check](https://protuno.com/playbooks/smtp-deliverability-check) leads with whether the site can send mail, checks SPF and DMARC over DNS, and sends one real test email to an address on your own domain when the site allows it. DKIM is reported only when that test email carries a signature.

On our test site we asked for both in one job. The test email step did not send this time: the report says Protuno did not allow that one test send, so delivery and the spam score were not measured, and DKIM showed as not verifiable. The check also does not test whether mail reaches Gmail or Outlook inboxes. It said so in the report rather than guessing.

What a job may change depends on the agent’s mode on that site. Read only: no changes run. Approval mode: a run starts only when you press Approve in Protuno. Auto mode: runs start on their own, with no approval. More about [Echo](https://protuno.com/docs/super-agent-echo) and [all six Super Agents](https://protuno.com/agents).

## Common Questions

### Why is WordPress not sending emails?

Usually because WordPress sends through PHP mail by default, and the server either has no mail program, blocks it, or sends mail inboxes do not trust. Sending through SMTP, with SPF, DKIM and DMARC set for your domain, fixes most cases.

### Why are my emails sent but not received?

The receiving server rejected or filtered them. Check that your domain has SPF, DKIM and DMARC records that match the service you send through, and that the From address is on your own domain.

### Why does my contact form say sent but nothing arrives?

The form handed the message to WordPress, and it failed after that. Test with a password reset email. If that also fails, set up SMTP. If it works, check the form’s To and From settings.

### How do I test if WordPress can send email?

Request a password reset for your own account from the login page. If it arrives, WordPress can send. Most SMTP plugins also have a test email button that shows the exact error when sending fails.

### Do I need an SMTP plugin?

On most sites, yes. It makes WordPress send through a real mail server instead of the web server, which works on hosts without a mail program and is far more trusted by inboxes.

## Related Reading

- [Contact form not sending, with no error at all](https://protuno.com/blog/wordpress-form-silent-failure)
- [A WordPress contact form health check](https://protuno.com/blog/wordpress-contact-form-health-check)
- [WordPress email deliverability](https://protuno.com/blog/wordpress-email-deliverability)
- [SPF too many lookups](https://protuno.com/blog/spf-too-many-lookups)

## Sources

- [WordPress Developer Resources, wp_mail()](https://developer.wordpress.org/reference/functions/wp_mail/)
- [WordPress Documentation, Settings General Screen](https://wordpress.org/documentation/article/settings-general-screen/)
- [WordPress Developer Blog, What’s new for developers (November 2026)](https://developer.wordpress.org/news/2026/11/whats-new-for-developers-november-2026/)
