WordPress email test suite

WordPress emits email from at least ten distinct code paths in core, plus one for every plugin and theme that calls wp_mail(). A single test from the mailer plugin’s settings page proves the SMTP connection works; it does not prove the right code path fires for each of those sources.

This is a reference test suite for operators who have already configured email and want to verify every emission point: after initial setup, after configuration changes, after a plugin update that touched the mail path, or in response to a report that a specific notification stopped arriving. The suite is organised by emitter category; each entry names the trigger, the observation points, and where to look when the test fails. For initial setup (rather than verification), the parent is How to set up email on WordPress.

Two different tests, often confused

Every entry in this suite runs as one of two test types:

Send-test. The mailer plugin’s “Send a test email” button. Proves the SMTP connection is authenticated and the relay is accepting messages. Fails when the SMTP credentials are wrong, the TLS handshake fails, or the relay is unreachable. Pass result: the relay logs a 250 OK and the message arrives. This is a useful sanity check; it is not sufficient as a test suite by itself.

Trigger-test. Actually performing the action that fires the WordPress notification: placing a real test order, submitting the real form, creating a real user account. Trigger-tests fail for different reasons than send-tests: a plugin is hooked to suppress the action, a security plugin is throttling the trigger, the action hook was removed by a theme or other plugin, or the code path used by production traffic is different from the one being tested. A site can pass every send-test and fail trigger-tests silently.

The entries below are trigger-tests unless noted.

Three observation points

1. Did the trigger fire? The form’s success screen appeared. The WooCommerce order moved to “Processing.” The user registration returned a “check your email” message. If the trigger did not fire, the notification cannot have been emitted: investigate the plugin, not the mailer. An error message on screen is not proof that the trigger did not fire. Contact Form 7 and core’s password reset both show an error when wp_mail() returns false, so check the email log as well.

2. Did wp_mail() run, and what did it return? Check the email log. Three states: no entry (the action fired but a filter, a security plugin throttle or conditional logic in the sending plugin stopped the call to wp_mail(); the plugin sends without wp_mail(), as BuddyPress does by default; or the log missed the call), entry with Sent: No or a red status (wp_mail() reported a failure, either before the mailer, for example on an invalid From address, or in the send itself, for example on a credential or network error; read the error for the cause), entry with Sent: Yes (the log recorded no failure; Check & Log Email writes the entry before the send and marks it failed only if wp_mail_failed fires, so a message that another plugin blocked through pre_wp_mail, or that Disable Emails swallowed, also shows as sent). Log Emails records no send status, so its entries show neither Sent: Yes nor Sent: No. What a log misses depends on where it records. Log Emails records at phpmailer_init, so it misses a call that stops on an invalid From address, and every call under Post SMTP’s default mode.

3. Did the relay accept it, and did the recipient mailbox receive it? Check the transactional provider’s activity log: Postmark Activity, SendGrid Email Activity, Mailgun Logs, SES bounce/complaint notifications. The provider log shows whether the receiving server returned a 2xx acceptance, a soft bounce (4xx), or a hard bounce (5xx). Then check the actual inbox: inbox, spam, Promotions tab, Updates tab. A message can pass all three observation points and still land in spam; that is a deliverability problem, not a sending problem. For the methodology of that layer, see How to test whether WordPress email actually reaches the inbox. When the relay’s activity log is inaccessible or a connection failure is suspected, testing directly with swaks bypasses WordPress and the plugin layer entirely.

Preconditions

Two checks before running the suite.

wp_mail() must work for arbitrary email. Send a test from the mailer plugin’s own test screen to an address you control, and confirm it arrives. In FluentSMTP, Post SMTP and WP Mail SMTP, that test goes through wp_mail(). If the site has no mailer plugin, use the Test Email screen in Check & Log Email 2.0.18 or later, which also provides the log the next check needs; earlier versions have published cross-site scripting flaws. If WP Test Email is installed, replace it: 1.1.7, the release WordPress.org serves, has three published cross-site scripting flaws, and the directory has no fixed release (details in the review). If the test fails, stop here and work through Troubleshoot WordPress email first: any trigger-test below that sends through wp_mail() is likely to fail for the same reason. BuddyPress by default does not use wp_mail(), so its tests can pass or fail independently. With FluentSMTP, or Post SMTP in its default mode, BuddyPress does use wp_mail(), and its tests are likely to fail with the rest.

An email log must be installed. Without one, observation point 2 is invisible. Check & Log Email (2.0.18 or later) captures the subject, headers, body and failure status of every wp_mail() call. Log Emails stores the full message too and logs from phpmailer_init, so it catches mail that skips wp_mail() but still fires that hook. It does not record whether the send succeeded. The mailer plugin’s own log (free in FluentSMTP and Post SMTP, Pro-only in WP Mail SMTP) is also sufficient if it shows per-message send status.

WordPress core emails

WordPress core sends several notification emails directly through wp_mail(). Automatic update notification emails fire on the cron schedule and cannot be cleanly triggered without WP-CLI or a live update; skip them in a standard verification pass. The four below are triggerable on demand and together cover the core notification paths.

Administrator email change

Trigger: Go to Settings > General, change the Administration Email Address to a second address you control, and save. WordPress sends a confirmation link to the new address before the change takes effect. The current admin address receives a “your email address changed” notice after the confirmation is clicked.

Why test this first: The test needs no cron run and no external trigger. When you save a valid address that differs from the current address and from any already-pending address, core calls wp_mail() in the same request to send the confirmation. If the log marks the confirmation email as failed, read its error and fix that first: other mail sent through wp_mail() is likely to fail the same way. A missing entry has other causes, listed under Observation.

Observation: Check the email log for two entries (confirmation link to the new address, notice to the current address). The second entry appears only after the confirmation link is clicked. If the first is missing, check that the address differs from the current one and from any change already pending, since saving either again sends nothing. Then investigate whether a plugin has unhooked update_option_new_admin_email(), and whether the log missed the call (observation point 2).

New user registration

Trigger: Go to Users > Add User. Leave “Send the new user an email about their account” checked. Save the new user.

Two emails fire from this one action. The new user receives a welcome email with a password-setup link (sent to the address in the Email field). The site administrator receives a “New User Registration” notification at the address in Settings > General > Administration Email Address.

These two emails can fail independently. The admin notification uses get_option('admin_email'); the user welcome uses the submitted email address. A domain with aggressive spam filtering may accept the admin notification and reject the user welcome, or vice versa. Check both entries in the log separately.

Note: If the site uses WooCommerce, MemberPress, or another plugin that overrides wp-login.php‘s registration form, test registration through the plugin’s own flow instead; the email template and the From address may differ from core’s.

Password reset

Trigger: Log out (or open a private window), go to wp-login.php?action=lostpassword, and submit the form for an account whose email address you control.

On a healthy SMTP connection the reset email typically arrives within 30 seconds. Anything beyond three minutes is typically a soft-retry indicator; check observation point 3 first (the relay’s activity log), then observation point 2 (the wp_mail() log entry).

The specific failure modes for this flow (the WooCommerce customer reset path, the security plugin throttle, the 24-hour key expiry, the default From address) are covered in Why WordPress password reset emails don’t arrive.

Comment moderation

Trigger: With Settings > Discussion > “Comment must be manually approved” enabled, post a comment on a published post as a logged-out visitor. Do not use the admin account email; the administrator email address is the notification recipient and submitting it as the commenter produces self-addressed test behaviour. Use a name and email not associated with any WordPress user.

The site administrator should receive a moderation notification at the Administration Email Address. If the email log shows no entry, confirm the “A comment is held for moderation” checkbox is ticked under Settings > Discussion > “Email me whenever”. If only “Anyone posts a comment” is ticked (the always-on notification), moderation-specific notifications will not fire for held comments. The two checkboxes are independent; the moderation-specific one is the one this test relies on.

The notification fires only for a comment held as pending. It does not fire for a comment that is approved automatically, or one that Akismet or another filter marks as spam.

WooCommerce emails

WooCommerce ships a complete set of default email templates. They divide into admin-facing (received by the store administrator) and customer-facing. The set grows between major versions, so check the list in WC_Emails::init() in woocommerce/includes/class-wc-emails.php for the installed version. WooCommerce 11.3 registers sixteen templates in every install, and more (fulfillment, review request, order withdrawal) when their features are switched on. The tables below cover the order and account templates. Of the rest, “Payment gateway enabled” goes to the admin when someone turns on a payment method, and the two point-of-sale (POS) templates only go out for in-person orders taken through WooCommerce’s POS feature.

Before testing: Go to WooCommerce > Settings > Emails. Confirm the “From” name and “From” address fields are set to an address on the organisational domain. These fields set the From header for all WooCommerce templates. In WP Mail SMTP and Post SMTP the effective priority is: the plugin’s Force From (if enabled) > WooCommerce From > WordPress default. FluentSMTP differs: it keeps a WooCommerce From that belongs to one of its connections, and replaces any other unless the default connection has Force From Email off. A WooCommerce store that has working WordPress mail and correct SMTP plugin settings will still emit WooCommerce emails from the wrong From if these two fields are misconfigured and the SMTP plugin does not replace the address; the From address defaults to the site’s admin email. If WooCommerce emails are landing in spam while non-WooCommerce emails are not, check the WooCommerce From field first; if Force From is also enabled in the SMTP plugin, confirm both.

Each template has a “Manage” button in WooCommerce > Settings > Emails. The Manage screen shows a preview of the template filled with a sample order, and can send that preview as a test email to an address you enter. The sample order is not a real one and no order changes state, so the preview test checks the template and its styling only. It is a send-test, not a trigger-test.

Admin-facing templates

Template Trigger
New order Place a test order through the storefront using a payment gateway that completes immediately (Stripe test card 4242 4242 4242 4242, or Cash on Delivery, which moves a physical-product order straight to Processing).
Cancelled order Place a test order, then change its status to “Cancelled” from WooCommerce > Orders.
Failed order Place a test order with a payment gateway configured to decline (Stripe test card 4000 0000 0000 0002). Note: the WooCommerce “Bank Transfer” gateway moves orders to on-hold, not failed.
New order (resend) Open any order and, under “Order actions”, choose “Resend new order notification” and click Update. This sends the admin New order email again without placing a new order.

Customer-facing templates

Template Trigger
Order on-hold Place a test order using the WooCommerce Direct Bank Transfer or Cheque Payment gateway, which produce an on-hold status by design.
Processing order Same test order that triggers “New order” above (the gateway-completes-immediately path).
Completed order Change any paid test order’s status to “Completed” from WooCommerce > Orders.
Refunded order Refund a paid test order from the WooCommerce order detail screen. Both full and partial refunds fire this template. On a site using the WooCommerce block email editor, partial refunds have their own editable “Partially refunded order” template in the list.
Cancelled order Change a processing or on-hold test order to “Cancelled”. Unlike the admin Cancelled order email, this one does not fire for a pending order. It ships switched off unless the block email editor is on, so enable it first under WooCommerce > Settings > Emails.
Failed order The declined-card test order that fires the admin Failed order email also fires this one, to the customer’s address.
Customer invoice / order details Open any order, then under “Order actions” choose “Send order details to customer” and click Update. Order actions can also resend the admin New order email (see above).
Customer note Add a customer note to a test order with the “Notify customer” checkbox checked, then click “Add.”
Reset password Visit /my-account/lost-password/ and submit a registered customer’s email address. This is the WooCommerce-specific customer reset path: separate from the wp-login.php core reset path above; each fires its own email with its own template.
New account Register a new customer account through /my-account/ (the WooCommerce shortcode path, not the WordPress Users > Add User path).

After running the full WooCommerce table, confirm the email log has an entry for each template and that the “From” address in the log matches the domain on the sending SMTP account (not [email protected] and not a subdomain variant). One wrong From across the full template set usually means the WooCommerce “From address” field still holds the admin email it defaults to, or an old address. If the SMTP plugin forces its own From, check that setting too.

Contact forms

Contact forms are one of the most common sites of unreported email failure. The site owner tests the SMTP plugin, confirms password reset works, and assumes the contact form is fine, but the notification email goes to a separate address, uses a different From setting, and sometimes fires through a different internal hook. Test each form explicitly.

Test pattern for all contact form plugins: fill out the form on the page where it is embedded, as a real visitor would. Some plugins suppress sending notification back to the notification recipient when the submitter’s email matches the recipient’s; use an external address as the submitter to avoid this.

WPForms

Submit the embedded form. On a paid plan, open WPForms > Entries and confirm the submission appears, then check the email log for the notification entry. WPForms Lite does not store entries, so on Lite the email log is the only check.

WPForms wraps wp_mail() with its own notification engine. A submission can appear in WPForms > Entries with no email sent if the notification was conditionally disabled, if a Smart Conditional Logic rule (a paid feature) prevented the notification from firing, or if the “Send To” field in the notification settings holds no valid address. WPForms attempts to send to a mistyped address that is still valid, and that attempt calls wp_mail(). With “Optimize Email Sending” on in the WPForms email settings, the notification is queued through Action Scheduler, so its log entry can appear after the submission. The entries view confirms the form processed the submission. An email log entry confirms that WPForms called wp_mail(); no entry can mean that the notification did not run, that it is still queued, or that the log missed the call.

If an autoresponder is configured (the confirmation email to the submitter), test it as a separate submission: it uses its own From and To settings and can fail while the admin notification succeeds.

Gravity Forms

Submit the real form, then check the email log. Notifications are configured at Forms > [form] > Settings > Notifications. Gravity Forms adds a note to each entry with the result of every notification send, so the entry and the email log can be compared. To send a notification again without a new submission, select the entry under Entries and use the “Resend Notifications” bulk action.

Gravity Forms has its own log, set under Forms > Settings > Logging. If the email log shows nothing after a real submission, this log can show whether the notification was attempted at all.

A submission marked as spam does not trigger notifications. The honeypot’s default is to create the entry and mark it as spam; those entries are under the “Spam” link above the entry list. Marking one “Not Spam” does not send the missed notification.

Contact Form 7

CF7 has no built-in notification log. Its success message appears when wp_mail() returned true for the main mail, or when sending was skipped by the skip_mail or demo_mode setting or the wpcf7_skip_mail filter. The default error, “There was an error trying to send your message. Please try again later.”, is the same for a failed send and for a submission marked as spam. Mail (2) does not affect either message. Submit the real form and check the email log entry.

If Flamingo is also installed (the CF7 companion storage plugin), it stores submissions that CF7 sent, failed to send or marked as spam, unless the form sets do_not_store or demo_mode. A Flamingo entry with no email log entry can mean that the submission was marked as spam (it is then under the “Spam” link above the list), that skip_mail is on, or that the log missed the call. Log Emails misses a send with an invalid From address, because wp_mail() stops before phpmailer_init.

Fluent Forms

Submit the embedded form. Open Fluent Forms > Entries, open the submission, and check the “Logs” tab inside the entry detail view. Fluent Forms logs notification dispatch at its own layer: it records the recipient and subject when a send starts, and an error when wp_mail() reports a failure.

Conversational Forms use a different front-end script but submit to the same handler as standard forms. If both layouts are in use, test each once.

Ninja Forms

Submit the embedded form. Open Ninja Forms > Submissions and confirm the entry appears. Ninja Forms has no email log, so the email log plugin is the observation point. Email actions are on the form builder’s Emails & Actions tab. To send one again for an existing submission, use the “Trigger Email Action” bulk action on the Submissions screen.

Ninja Forms supports multiple email actions per form: an admin notification and a user confirmation, for example. Each action is a separate wp_mail() call and can fail independently. Check the email log for one entry per configured action, not just one entry per submission.

Formidable Forms

Submit the embedded form. Open Formidable > Entries to confirm the submission registered. The free version of Formidable shows entries but does not have a notification log; the email log plugin is the observation point. The paid Logs add-on does not change that: its documentation lists API requests from other add-ons, not email. An email log entry confirms that Formidable called wp_mail(); no log entry can mean that the email action did not run, or that the log missed the call. If wp_mail() returns false, Formidable sends the message again with PHP mail(), so a log entry marked as failed does not prove that nothing was sent.

LMS, membership, and community plugins

Enroll or transact as a test user through the same path real users take, then check the email log. LifterLMS, Paid Memberships Pro and BuddyBoss Platform send through wp_mail(), so the three observation points apply as written. BuddyPress by default does not; see its entry. LearnDash and MemberPress do not publish their source, so check with a known-good trigger that the log records them before reading anything into an empty log.

LearnDash. Emails are set in three places: purchase and registration emails at LearnDash LMS > Settings > Emails, course and lesson notifications at LearnDash LMS > Notifications, and quiz emails at LearnDash LMS > Quizzes > Settings. Notifications were a separate add-on before LearnDash 5.2, which merged the feature into core. Triggers: enroll a test user (Users > [user], “User Enrolled in Courses”), complete a quiz, or complete a course. Each notification can go to the user, group leader, or administrators. LearnDash’s timing guide still describes the add-on and its scheduled task; check the notification schedule for the installed version before relying on delayed delivery.

LifterLMS. Notifications at LifterLMS > Settings > Notifications, each with its own recipients per type. By default the enrollment, lesson-complete and course-complete notifications reach the student as an on-screen popup, not an email; the purchase receipt and quiz-graded emails do go to the student. Trigger those, or add a recipient to the email type before testing it. LifterLMS queues notifications through Action Scheduler, so the log entry can appear after the trigger.

MemberPress. Email settings at MemberPress > Settings > Emails. Trigger: subscribe to a membership through the registration page, with a free membership or a test payment gateway. A transaction added by hand under MemberPress > Transactions sends no email. Cancel a recurring subscription from the Recurring tab of MemberPress > Subscriptions; to expire access, edit the transaction’s expiration date. Reminders run on WP-Cron.

Paid Memberships Pro. Memberships > Settings > Email Settings and Memberships > Settings > Email Templates. Triggers: check out as a test user, then cancel from Memberships > Members > [member] > Edit Member. Expiration and renewal reminders run through Action Scheduler. Version 3.9 also keeps its own log at Memberships > Reports > Email Log.

BuddyPress. Triggers: send a private message to a test user, mention a test user in an activity post, accept a friend request. Email templates are in the Emails admin menu. There is no site-wide toggle for each email; each member turns their own on or off under Settings > Email in their profile.

By default BuddyPress sends with its own PHPMailer class instead of wp_mail(). It fires phpmailer_init, but not the wp_mail filter, so a log that watches the filter records nothing. Log Emails records these messages. Check & Log Email 2.0.19 does not: it hooks BuddyPress’s send results, but its handler returns early for them. BuddyPress switches to wp_mail(), in plain text, when a filter sets HTML as the mail content type or another plugin has redeclared the function, as FluentSMTP and Post SMTP’s default mode do.

BuddyBoss Platform. Same triggers as BuddyPress. Templates are at BuddyBoss > Emails. It calls wp_mail() by default; logs that capture wp_mail() calls should record it.

For plugins that use wp_mail(), an empty log after a confirmed trigger can mean the notification is off or has no recipient. Check the plugin’s notification settings and the Action Scheduler queue where there is one before investigating wp_mail() or the SMTP configuration. For BuddyPress, confirm that the log records its mail first; until then an empty log proves nothing.

Custom application email

Plugins and themes can call wp_mail() directly for notifications not covered by the categories above: low-stock alerts, scheduled reports, webhook-triggered receipts, security notifications. A log that records wp_mail() calls catches them, but only if it is running when the trigger fires.

To enumerate the custom email a site is sending: leave the email log running for 24-72 hours of normal traffic, then review the log for subjects and recipients that do not map onto the categories above. Each one needs identification (which plugin, which hook or function) and a test pattern.

Cron-driven email (subscription renewal reminders, scheduled digests) is sent on a schedule, through WP-Cron or the Action Scheduler library. Via WP-CLI (requires SSH access), list the scheduled WP-Cron events, then run those that are due:

wp cron event list
wp cron event run --due-now

Or trigger one scheduled hook:

wp cron event run wpforms_email_summaries_cron

That hook sends the WPForms weekly summary, when summaries are on and forms have entries for the week. wp cron event run only accepts a hook that appears in the list; for any other name it stops with Invalid cron event. Jobs held by Action Scheduler, which WooCommerce bundles, are not in that list. wp action-scheduler run processes the ones that are due.

Low-stock alerts are not scheduled. WooCommerce sends them through wp_mail() when an order takes a product down to its threshold. To test, enable low stock notifications under WooCommerce > Settings > Products > Inventory, set a low stock threshold on a test product that manages stock, and place an order that reaches it.

Webhook and API-triggered email (an external service POSTs to the site, which sends a notification) requires the external service to actually fire, or a curl reproduction of the request, to test. An email log entry for the message shows that the handler reached its mail call. An empty log can mean that the handler returned early, before the mail call, or that the log missed the call.

The headless-path trap

The tests above use the WordPress dashboard or a real browser form. A site that processes the same actions through the REST API or via external automation may not fire the same notification hooks.

Specific cases:

  • User creation via REST API (POST /wp/v2/users). Core does not call wp_new_user_notification() on REST-created users by default. The welcome email and admin notification that fire from Users > Add User do not fire from the API path.
  • WooCommerce orders via WC REST API (POST /wc/v3/orders). In WooCommerce 11.3, a request with status: processing saves the order as pending and then moves it to processing, which fires the New order and Processing order emails. A request with neither status nor set_paid leaves the order at pending payment, and neither email fires.
  • Form submissions via external workflow tools (Zapier, Make, WP Webhooks, n8n, AutomatorWP). If the production flow processes submissions through an external connector rather than the WordPress form submission handler, the form plugin’s notification hook may not fire at all.

Test the same path the real users take. If the production flow is API-driven, run the test against the API endpoint. A dashboard test that passes does not confirm the API path works.

Three tests that cover most failures

Three tests cover the majority of customer-impacting failures:

1. Trigger a password reset. Covers the most common WP core notification, the most commonly-reported failure, and the core wp_mail() path. If this fails, stop everything else and diagnose it first.

2. If WooCommerce is installed: place a real test order and complete it. Covers the customer-facing order sequence and confirms the WooCommerce From settings are correct. If WooCommerce is not installed, submit the primary contact form instead.

3. Check the email log after 24 hours of normal traffic for Sent: No entries. Manual tests cover only the paths on your test list. A log that records send status also covers other code that calls wp_mail(). Each Sent: No entry is one send that failed: read its error, and if it came from a path that was not on that list, add a test for it.

These three do not replace the full suite for post-configuration verification.

nanoPost Email Check, a plugin nanoPost makes, repeats a core wp_mail() test on a schedule: it sends a test email and shows a dashboard warning when one fails. It tests that one path only: it does not place orders or submit forms, so WooCommerce and form notifications still need the tests above.

Corrections
  • 2026-11-26: an earlier version said a Sent: Yes log entry means the message was handed to the relay, Sent: No means the mailer rejected it, and no entry means wp_mail() was not called. Sent: Yes means only that the log recorded no failure. A send can fail before it reaches the mailer, and a log can miss a call.
  • 2026-11-26: an earlier version said a failed administrator-email test means the SMTP connection is broken and nothing else in the suite will pass, and that after a failed test from the mailer plugin’s screen every trigger-test “will fail for the same reason”. A failed test can have other causes, and BuddyPress by default does not use wp_mail().
  • 2026-11-25: an earlier version said the email log is the only sign that Contact Form 7 called wp_mail(), that a Flamingo entry with no log entry means the call never reached wp_mail(), and that a mistyped WPForms “Send To” address stops the email. A failed CF7 send shows an error on the form, Flamingo also stores spam, and WPForms attempts to send to any valid address.
  • 2026-11-25: an earlier version told readers to install WP Test Email. The release WordPress.org serves, 1.1.7, has three published cross-site scripting flaws, and the directory has no fixed release.
  • 2026-11-25: an earlier version said BuddyPress sends through wp_mail(). By default it uses its own mailer, so an empty wp_mail() log does not mean a notification is off.
  • 2026-11-25: an earlier version told readers to run woocommerce_low_stock_notification as a cron event. It is an action hook, not a scheduled event, and WP-CLI rejects it.
  • 2026-11-25: an earlier version said WooCommerce may not send order emails for REST orders created with status: processing, and that Log Emails records send status but not the message body. Both were wrong.
  • 2026-11-25: earlier versions described settings or log screens that LearnDash, Gravity Forms, Ninja Forms and Formidable Forms do not have, and said Fluent Forms’ Conversational Forms use a separate submission handler.
  • 2026-11-05: an earlier version said WP Mail SMTP’s email log is free. It is a Pro feature.
  • 2026-11-18: an earlier version gave the wrong name for the “Send order details to customer” order action, and said the customer invoice was the only WooCommerce email an admin can resend. “Resend new order notification” resends the admin New order email.
  • 2026-11-25: an earlier version gave one order of precedence for the WooCommerce From address and an SMTP plugin’s Force From setting. FluentSMTP follows a different one: it keeps a From that belongs to one of its connections.