Log Emails
Log Emails
Description
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. Uninstalling the plugin purges all logs.
Translations
Many thanks to the generous efforts of our translators:
- Czech (cs-CZ) — Rudolf Klusal
- English (en_CA) — the English (Canadian) translation team
- English (en_GB) — the English (British) translation team
- French (fr-FR) — Hugo Catellier
- Korean (ko_KR) — the Korean translation team
If you’d like to help out by translating this plugin, please sign up for an account and dig in.
Installation
- Upload this plugin to your /wp-content/plugins/ directory.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
Faq
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…
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.
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.
Reviews
Faith restored!
By Anonymous User 652281 (anonymized_652281) on July 2, 2021
Really great plugin!
By Boat (boatkung) on October 16, 2020
Simple is good
By rvnd on September 30, 2020
compact and free from vulnerabilities
By tazotodua on December 14, 2018
Only sad I didn't find this plugin sooner!
By John Hawkins (vegasgeek) on October 6, 2018
Simple and useful plugin
By Max K (kaminsky.m) on April 26, 2017
5+
By Akira Tsukizawa on February 17, 2017
Recommended!
By szabesz on November 22, 2016
Fantastic tool!
By tiomno on September 3, 2016
Very handy tool. A client asked me to implement a log for keeping track of emails that the website sends to customers, and this is the perfect plugin! Thanks a lot!
Please, just add a couple of screenshots, so the users can quickly find where to access settings (Settings\Log Emails) and admin option (Tools\Email Logs). BTW: the admin option should be "Tools\Log Emails". 😉
Changelog
The full changelog can be found on GitHub. Recent entries:
1.5.0
Released 2024-07-28
- changed: requires PHP 7.4 minimum (recommend PHP 8.2+)
- fixed: viewing an email log triggered warnings in PHP 8.1+
- added: Settings, Logs links to Plugins page listing