How to test WordPress email: a check that actually proves delivery
WordPress only tells you a mailer accepted your message, never that anyone received it. Send one real email to an inbox you can open, and check three things instead of one.
On this page
The fastest way to test WordPress email is to send one real message from your site to a disposable inbox you can actually open, then check three separate things: that it arrived, that the content survived the trip, and that it passed authentication. That loop is really all there is to how to test WordPress email. What you should not do is trust the admin screen, because WordPress only ever reports that a mailer accepted the message, never that a person received it.
Why “message sent” is not a test
wp_mail() is the function almost every WordPress plugin uses to send mail. It hands your
message to PHPMailer, the mail library bundled with WordPress, and returns true if PHPMailer
took it. Everything after that point, the host’s outbound queue, the receiving server, the spam
filter, is invisible to WordPress. So “test email sent successfully” means the handoff worked,
and nothing more.
Emailing yourself is almost as weak. Mail between two addresses that already trust each other often takes a shorter path, your own rules may file it somewhere you never look, and a message that lands in your own spam folder still counts as delivered. A mailbox with no history with your site is a much harder test, which is exactly what makes it useful.
Step 1: get an address you can read
Open InboxDome and copy the address on the page. There is no signup and no app: the inbox exists as soon as the page loads, and mail appears live as it arrives. The address is receive only, so it cannot send anything back, and it is destroyed after 24 hours by default, or up to seven days if you extend it for something slow.
Keep that address in a scratch note, because you are going to paste it several times. For the longer version of this step, including when a throwaway address is the wrong tool, see how to create a test email address.
Step 2: send one real message from WordPress
Use whichever of these three you can do fastest.
From the command line. If you have WP-CLI on the server, one line sends through the exact path your plugins use:
wp eval 'var_dump( wp_mail( "h4x8s2kq@mail.inboxdome.com", "InboxDome test", "Hello from " . home_url() ) );'
bool(true) means WordPress handed the mail off successfully. bool(false) means it never
left the building at all, which is a different problem with a different fix:
WordPress send email not working walks the likely
causes in order.
From the admin. The InboxDome Email Tester plugin puts the same test
under Tools then Email Tester: paste a free API key, click once, and it sends a real message to
a fresh inbox and reports arrival time and authentication back to you. It is not listed on
WordPress.org, so you download it and upload it to wp-content/plugins/ yourself.
Through a real flow. The most honest option: create a user whose address is the disposable
one and request a password reset, or submit your own contact form with it. That tests the
trigger, the template and the delivery together, which the bare wp_mail() call does not.
Step 3: judge what arrived, not just that it arrived
Open the message and read it the way a customer would. Four things go wrong far more often than outright non-delivery:
- The From address. If it says
wordpress@yoursite.comand that mailbox does not exist, replies vanish and filters get suspicious. - The links. Staging and local sites happily send links pointing at
localhostor a staging host. Hover over every one. - Merge tags. A template that prints a raw placeholder instead of a customer name has technically delivered and still embarrassed you.
- The plain text part. Some clients show it instead of the HTML. If it is empty or garbled, a share of your readers see that.
Step 4: check SPF, DKIM and DMARC
These are the three DNS records that tell a receiving server your mail is genuinely from your domain: SPF lists who is allowed to send for you, DKIM signs the message, and DMARC says what to do when those checks fail. Google’s sender guidelines require SPF or DKIM from every sender, and all three from bulk senders.
This is where mail that arrives but sits in spam usually goes wrong, and no amount of rewriting the subject line fixes it. Why emails go to the spam folder covers the rest of that story. The InboxDome plugin and the API both report SPF, DKIM and DMARC results for the message they received, so you get the verdict from the receiving side rather than from a lookup tool that only sees the record.
Step 5: test the mail your users actually get
Most advice on how to test WordPress email stops at the wp_mail() call. That call proves the
pipe, and it says nothing at all about your templates. A WordPress site
typically sends new user registrations, password resets, comment moderation notices, contact
form notifications, plugin alerts and, with WooCommerce, a stack of order status emails. Each
one has its own trigger and its own template, and any of them can be broken while the rest work.
Work through them with the disposable address in the customer field. For WooCommerce, place a test order using the disposable address as the billing email and move that order to processing, which is what fires the confirmation.
Step 6: make it a check that runs without you
Email breaks silently, and usually because of something you did not touch: a host migration, a DNS edit, a mail provider rotating keys. The point of automating this is that you find out before a customer does.
The Email Testing API creates an inbox, waits for the message, and asserts on it in one call:
curl -X POST https://inboxdome.com/v1/inboxes/inb_.../assert \
-H "Authorization: Bearer idk_live_..." \
-H "Content-Type: application/json" \
-d '{"timeoutSeconds":45,"assertions":[
{"type":"containsText","text":"Your order"},
{"type":"auth","check":"dkim"}]}'
The free tier covers 100 inbox tests a month with no credit card, which is enough to run a delivery check on a schedule and after every deploy. Point the same call at a staging site before a release, and knowing how to test WordPress email stops being something you remember to do and becomes something the pipeline does for you.
Disclosure: InboxDome publishes this blog and makes the products it mentions. We describe what they do rather than promise results.
Key takeaways
- A real test sends one message to a mailbox you can open, because wp_mail() only reports that a mailer accepted the handoff.
- Do not test by emailing yourself, since your own domain and your own filters hide the failures you are looking for.
- Check three things separately, that the message arrived, that its content and links survived, and that it passed authentication.
- The wp_mail() test proves the pipe works, so test each real template too, from password reset to order confirmation.
- Email breaks silently after host, DNS or plugin changes, so turn the check into something that runs without you.
Sources
- WordPress Developer Reference: wp_mail() — The pluggable function every WordPress plugin sends through, and what its return value means.
- WP-CLI command reference: wp eval — Runs arbitrary PHP inside a loaded WordPress, which is how you call wp_mail() from a shell.
- Google: Email sender guidelines — Every sender needs SPF or DKIM, and bulk senders need SPF, DKIM and DMARC.
Links last checked September 9, 2026.
Frequently asked questions
Can I just send a WordPress test email to my own address?
You can, but it is the weakest possible test. Mail between two addresses on domains that already trust each other often takes a shorter path, your own filters may file it silently, and a message that lands in your spam folder still looks delivered. A fresh mailbox with no history with your site is a harder test, which is why it is the one worth running.
Do I need a plugin to test WordPress email?
No. If you have WP-CLI on the server, one wp eval line calling wp_mail() sends through the same path your plugins use. A plugin is only a convenience that turns that into a button in the admin and reads the result back for you.
How do I test WordPress email on localhost or a staging site?
Mail from a local machine usually never leaves it, so point WordPress at a real SMTP provider with an SMTP plugin first, then send to a disposable inbox. Read the links in whatever arrives carefully, because staging sites commonly send links pointing at localhost or the staging host rather than production.
How often should I re-test WordPress email?
After anything that touches the sending path, which means a host migration, a DNS or DMARC change, a new mail plugin, a provider switch, or a theme that overrides email templates. Those changes break mail silently, so a scheduled automated check is worth more than remembering.