The email log: what it stores and what it never does

The Email Log tab of the free Email Health Check & Log plugin lists the emails your site sends, so you can see which ones failed and why. This post covers what is in it, and what is not.

What each entry holds

  • the time;
  • the source: the plugin that sent the email, your theme, WordPress itself, or Unknown;
  • the WooCommerce email type, when it is a store email;
  • the order number, for order emails (new in 1.9.0);
  • the status, Accepted or Failed, and the error message;
  • the recipient’s domain, and a partly hidden address such as j***@example.com. Only the first recipient is stored, with a count of the others (for example “+2”). Addresses inside error messages are hidden the same way.

It never stores the subject or the message. It never stores a full email address.

“Accepted” means WordPress handed the email to your mail system without an error. It does not mean delivered: only the receiving server knows that.

What you can do with it

  • Filter by source, status and WooCommerce email type.
  • See accepted and failed counts for the last 24 hours and the last 7 days, the last failure, and breakdowns by source and by email type.
  • Get a warning when many emails fail, in the dashboard widget and Site Health.
  • Open an order and see its own emails in Emails for this order.
  • Use it from the command line.

The log needs WordPress 5.9 or newer.

How long it keeps entries

Seven days by default. In the settings you can choose 1, 3 or 7 days, turn logging off, or clear the log. A daily clean-up deletes entries older than your choice, and also trims the log to the newest 5,000 entries. Between clean-ups it can briefly be larger. The clean-up keeps running when logging is off, so old entries still expire. Uninstalling the plugin removes the log table and its settings.

The plugin adds a suggested paragraph about the log to your privacy policy under Settings > Privacy. Please read it and decide what your own policy should say.

Can it change or stop my emails?

No. The log only watches. It hands back exactly what it receives, so it does not change the subject, recipients, headers or attachments. Each email causes one small database insert and no web request. If writing the entry fails, the email is still sent. One limit: mail that another plugin sends by taking over WordPress’s mail function before it finishes (the pre_wp_mail short circuit) never reaches the log.

You can get the plugin on WordPress.org.

Check your own domain

Type your domain into the free checker to see whether your SPF, DKIM and DMARC records are in place. Or install the free plugin, which checks the basics from inside your dashboard.