WordPress Email Log: See Every Email Your Site Sent

WordPress keeps no record of the emails it sends. An email log lists each one with recipient, subject, date and status, and lets you resend a failed one.

A customer says the order confirmation never came. A visitor filled in your contact form and you received nothing. The first question is always the same: did the site send that email at all? WordPress cannot answer it, because it keeps no record of what it sends. An email log does.

The essentials

  • WordPress has no built-in email log. wp_mail(), the function most plugins use to send email, returns true or false and stores nothing.
  • The log in Blaminhor Essentials is off by default. Once on, it records the date, recipient, subject, relay used, status and error message. Message content is a separate opt-in.
  • Entries are kept for 30 days (adjustable from 1 to 365), then deleted by a daily task.
  • Resend works on failed emails whose content was stored. Password-reset links are masked in the log and never resent.
  • Sent means accepted by your mail server. Whether the email reached the inbox depends on your domain’s SPF, DKIM and DMARC records.

Does WordPress keep a log of the emails it sends?

No. WordPress sends email through wp_mail(), a function that hands the message to PHPMailer (the mailing library bundled with WordPress) and returns true or false. Nothing is written down. Two hooks (signals a plugin can listen to) report each outcome: wp_mail_failed, and wp_mail_succeeded, added in WordPress 5.9. An email log plugin listens to both and writes a row per email.

The developer documentation describes the return value as “whether the email was sent successfully”. That is all the calling plugin learns: the contact form moves on, the order is marked complete, and the message is gone from the site’s memory.

This article is about seeing what was sent. If your emails fail or land in spam, the fix is a different job: routing WordPress email through an SMTP relay. If the problem is too many automatic emails, see stopping unwanted WordPress notifications.

What does an email log prove, and what does it not?

A log proves that your site handed the email to a mail server and that the server accepted it. It does not prove the email reached a mailbox. The SMTP relay is that mail server. Once it answers “250 OK”, it “is accepting responsibility for delivering or relaying the message” (RFC 5321, the email transport standard).

What happens after that is invisible to WordPress. Gmail or Outlook may file the message as spam or refuse it quietly; neither event comes back to your site, so the log keeps saying Sent. Whether a receiving provider trusts your email depends on three records in your domain’s DNS (the public directory that says which servers may send for your domain and how messages are signed): SPF, DKIM and DMARC, explained in WordPress email deliverability: SPF, DKIM, DMARC.

What does the Blaminhor Essentials email log record?

With the log on, each email that passes through wp_mail() gets one row: date, recipient, subject, the relay that carried it, Sent or Failed, and for a failure the error message that came back. Message content is not kept unless you also switch on “Store email content”. Everything below is read from the module’s code (Blaminhor Essentials 2.8.6).

WhatStored?
Date and timeYes, in the site’s time zone
RecipientThe To address only; Cc, Bcc and Reply-To are not kept
SubjectYes
RelayThe name you gave the relay; a dash when the server’s own mailer was used
StatusSent or Failed
Error messageFor failures, shown under the status
HeadersStored for resending, not displayed
AttachmentsFile paths only, not the files themselves
Message bodyOnly with “Store email content”; reset-link keys masked, sign-in codes never kept
Retention30 days by default, 1 to 365
Who can see itUsers with the manage_options permission, which administrators have

The Email Log tab of Blaminhor Essentials: a table with the date, recipient, subject, relay, Sent or Failed status, the error under a failed entry, and the View and Resend actions.

The plugin’s dashboard also counts the failures: when at least one email failed in the last 7 days, it shows “N emails failed in the last 7 days” with a link to the log.

How do you turn on the email log in WordPress?

Switch on the SMTP Mailer module, open its Configuration tab, turn on “Email activity log”, choose how long to keep entries, save. Four steps and no relay needed: the log works with the server’s own mailer as well as with an SMTP relay, and the first email sent afterwards becomes the first row. With Blaminhor Essentials:

  1. Install and activate the plugin, then switch on the SMTP Mailer module (a module is one feature you turn on separately).
  2. In the Configuration tab, turn on Email activity log. Leave Store email content off unless you need to read or resend messages: the activity log is enough to answer “was it sent?”.
  3. Keep logs for is 30 days by default; any value from 1 to 365 is accepted.
  4. Save, send yourself a message from the Test Email tab and open the Email Log tab. The test appears as the first row.

A relay is not required for the log to work; without one, the server’s own mailer carries the email and the Relay column shows a dash. If you also want to be told about failures as they happen, the same tab has Alert me when an email fails to send, by email or by Slack, Discord or Microsoft Teams webhook, at most once every 15 minutes.

How do you find and resend an email from the log?

Open the Email Log tab and click a column header to sort the entries on screen by date, recipient, subject, relay or status. “View” opens the stored message; on a failed email whose content was stored, “Resend” sends it again through your first active relay.

The table shows 20 entries per page, newest first, and sorting applies to the page you are looking at. Refresh reloads it without leaving the page; Clear All Logs deletes every entry at once. There is no search box and no status filter in the dashboard: on a busy site, the command line filters by status (wp blaminhor smtp logs --status=failed --user=<admin login>, see the FAQ); nothing searches by recipient or subject.

Three limits of the resend matter before you count on it:

  • Failed rows only, and only when the body was stored. A Sent email has no Resend button; a failed email logged without content shows a dash instead.
  • It goes through the first active relay, not necessarily the one that failed the first time.
  • It carries the To address, the subject and the body, nothing more. The attachments are not re-sent, and neither are the Cc, Bcc and Reply-To addresses or the HTML formatting of the original, which WordPress had already set aside before the email was logged: the copy goes out without files and, in most cases, as plain text.

The outcome shows on screen at once, and a resend that fails is not placed in the retry queue described below.

A failed entry in the Email Log with View expanded: the stored message as raw text, the relay's error message under the Failed status, and the Resend button.

What happens to password resets and sensitive emails in the log?

By default nothing of the content is kept, so a password-reset email leaves only its recipient, subject and status in the log. If you store content, the one-time key inside WordPress reset links is replaced by ***redacted***, and emails carrying a Blaminhor Essentials sign-in code are stored without any body.

The reason is in the module’s own comments: a reset link in a database backup would let anyone who holds that backup reset the account. So the key is blanked, and Resend refuses a masked email, which would deliver a dead link and report success. The masking covers the reset links WordPress itself builds; a token embedded by a theme or another plugin is stored as it is, and the Email Log tab says so when content storage is on: “Password-reset links are masked automatically, but other tokens are not.”

Even without content, the log holds personal data, and the plugin’s own notice says to keep logging on “only while diagnosing an issue”. A short retention, and the log switched off once the problem is found, follow that advice. The sign-in codes mentioned above come from the two-factor authentication of the Login Security module.

What is the retry queue (Beta), and how is it different from the log?

The log remembers; the retry queue (Beta) acts. When none of your relays can send an email, the module keeps an encrypted copy on your server and tries again on its own, up to 5 times within 72 hours, then deletes it. The queue is on by default and can be turned off, which deletes the emails waiting in it.

The attempts are spaced out: about 5 minutes after the failure, then 35 minutes, 2 h 35, 14 h 35 and 62 h 35. The queue holds 500 emails at most. Some emails are never kept, by rule: those with a WordPress password-reset or confirmation link, those carrying a sign-in code, those whose attachments exceed 2 MB in total, and those that already reached part of their recipients (a retry would send them a second copy).

The copy sits in what the code calls a vault. In plain words: the recipient, subject, body and headers are scrambled with AES-256-GCM, a standard encryption method, using the AUTH_KEY secret from your site’s wp-config.php file, so someone who reads the database table alone sees nothing readable. Attachments are copied, encrypted, under random names into a protected folder. If encryption is not available on the server, the queue keeps nothing and says so.

The Retry queue tab lists each waiting email with its attempts out of 5, the next attempt time and the last error, with Send now, Remove and Empty the queue. Automatic retries rely on WP-Cron, WordPress’s scheduled-task system, which runs when pages are visited; the tab warns you if it is switched off. An email given up after its last attempt shows as a dashboard warning for 7 days, and no copy is kept. In the log, the original failure stays as one Failed row; the automatic attempts do not add new Failed rows.

The Retry queue tab (Beta) of Blaminhor Essentials: one email waiting, its attempts out of 5, the time of the next attempt, the last error, and the Send now and Remove buttons.

Which email log plugin should you choose?

If you only need a log next to a mailer you already like, WP Mail Logging does that job for free. If you want the log inside the plugin that also routes your email, FluentSMTP, Post SMTP and Blaminhor Essentials include one; WP Mail SMTP reserves its log for the paid version. The table reads each plugin’s WordPress.org page as of November 7, 2026, nothing else.

PluginActive installsEmail logResendRetentionPrice of the log
WP Mail Logging300,000+Every email: subject, content, attachment paths, headers, error message; searchAny emailNot stated on the pageFree
WP Mail SMTP4+ millionPro: content, headers, delivery status, open and click rates, attachments, exportIndividually or in bulk (Pro)Not stated on the pagePro
FluentSMTP700,000+Headers, body and server response; with logging off, failed emails onlyAny email, to any recipientAuto-delete after the days you chooseFree, no Pro version
Post SMTP300,000+View, filter, status and error messagesListed among Pro featuresDepends on the planFree log, Pro for resend
Blaminhor Essentials80+Off by default; delivery details, content as an opt-inFailed emails with stored content1 to 365 days, 30 by defaultFree

Blaminhor Essentials is the least installed of the five by far, and its log is the plainest to browse. What it does differently is the default: nothing of the message is stored until you ask, and reset links are masked when you do. The log is one tab of the SMTP Mailer module, itself one of the 26 modules of a free modular plugin; if a log is the only thing you want, a single-purpose plugin is the lighter choice.

What can the Blaminhor Essentials email log not do?

No search box or status filter in the dashboard, no export button, no open or click tracking, no re-attached files on resend, and no resend of an email that was Sent. Emails another plugin stops before wp_mail() are never logged, nor is anything sent before the log was on. Status filter and CSV or JSON export: command line only.

What should you do once the log is on?

Send a test, check that it shows as Sent, then read the first Failed entry: its error message is the clue. A log tells you where to look, not how to fix it. For a relay that refuses your login, see fix WordPress email delivery with SMTP; for emails marked Sent that never arrive, SPF, DKIM and DMARC for WordPress.

Blaminhor Essentials is free and open source (its code is public).

Download Blaminhor Essentials

– blaminhor

FAQ

How long does Blaminhor Essentials keep the email log?

30 days by default. You can set any value from 1 to 365 days in the SMTP Mailer configuration, and a daily task deletes the entries older than that. The Clear All Logs button empties the whole log at once. Uninstalling the plugin deletes the log table only if 'Delete all plugin data when uninstalling' is ticked in the plugin's settings; it is off by default.

Can I see emails sent before I turned the log on?

No. WordPress keeps no record of its own, and the log only records emails sent after you switch it on. The first entry is the first email that goes out afterwards, so send yourself a message from the Test Email tab to check that the log works.

Does the email log need an SMTP relay?

No. The log records every email that goes through WordPress's wp_mail function while the SMTP Mailer module is active and logging is on, including emails the server sends with its own mail function. The Relay column then shows a dash instead of a relay name.

Is keeping an email log allowed under GDPR?

An email log holds personal data (recipient addresses, subjects), so data-protection law applies wherever it is in force. Blaminhor Essentials keeps only delivery details by default and makes storing message bodies a separate opt-in, with a warning that you become responsible for that content. Keep the log on while troubleshooting, with a short retention. This is not legal advice.

Why is an email marked Sent but never arrived?

Sent means the mail server your site uses accepted the message. What happens next, a spam folder, a silent rejection, a full mailbox, is not reported back to WordPress. Check the recipient's spam folder, then the SPF, DKIM and DMARC records of your domain, which Gmail and Yahoo check before accepting mail.

Can I manage the email log from the command line?

Yes, with WP-CLI, the command-line tool for WordPress, as an administrator. wp blaminhor smtp logs --user=<admin login> lists the log (add --status=failed to see failures only, --format=csv or json to export it), wp blaminhor smtp log <id> --with-body --user=<admin login> shows one entry, wp blaminhor smtp resend <id> --user=<admin login> sends it again and wp blaminhor smtp clear-logs --user=<admin login> empties the log.

blaminhor Building what's missing.

Comments