Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Log Emails

Log emails to the database, to enable email problem analysis

Log emails to the WordPress database for later analysis. Access is restricted to administrators, and emails with WordPress passwords are obfuscated for security / privacy. Useful for diagnosing lost email problems.

Use this plugin with Disable Emails to divert all WordPress emails into logs, especially handy for developers.

Logs are automatically purged after a defined period, set through a settings page in the WordPress admin. Setting the period to 0 prevents logs from being purged. Deactivating the plugin purges all logs.


Many thanks to the generous efforts of our translators:

If you'd like to help out by translating this plugin, please sign up for an account and dig in.

Author WebAware
Contributors webaware
Tags email, email log, logging, Logs
  1. Upload this plugin to your /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.

The full changelog can be found on GitHub. Recent entries:

1.2.1, 2016-11-26

  • fixed: password obfuscation for the current locale supports non-ascii characters

1.2.0, 2016-11-21

  • fixed: capture BuddyPress email recipients
  • fixed: remove Mine filter on list of email logs
  • fixed: stop some post admin plugins messing with the list of email logs
  • added: search also looks in From, To, CC, BCC email addresses
  • added: sort by subject, recipients
  • changed: password obfuscation also for the current locale
  • changed: menu item names are now Log Emails, the same as the plugin name

Standard WordPress emails are logged, but some others are not

You probably have a plugin that is sending emails via some other method, like directly using the PHP mail() function, or directly implementing an SMTP client. Not much I can do about that...

Why are some HTML emails broken?

Some plugins tell WordPress that their emails are HTML, using one of two accepted methods. These emails are correctly recorded as HTML and should display reasonably well in the logs. If they use CSS, they might not display exactly like they do in an email program, but should still display OK.

Some plugins just dump HTML into emails without saying it's HTML, or even following basic HTML document rules. If those emails have an alternative body, implying HTML + plain text parts, they'll be marked as HTML and will display as such.

If you find that emails from some plugins are broken, please tell me in the support forum.

What performance impact does it have?

Logging emails writes to the database. The plugin uses a custom post type, so logging each email has the same impact as saving a new WordPress post, i.e. generally not much.

The plugin stops caching plugins from purging their cache every time an email log is saved, currently implemented for WP Super Cache. If you have a caching plugin that is being affected by Log Emails, please tell me in the support forum.



Things I'd like to add to the plugin:

  • flag read / unread with bulk actions to mark logs
  • filter read / unread logs
Version 1.2.1

Requires WordPress version: 4.0 or higher

Compatible up to: 4.7.2

Last Updated 26 Nov 2016

Date Added: 20 Aug 2014

Plugin Homepage


5 stars
4 ratings


Not Enough Data

Works: 0
Broken: 0