Get the plugin
WP MCP/Integrations/Operations

Operations integration

WP Mail Logging MCP

WP Mail Logging keeps every email WordPress sends in its own wpml_mails table. It has no status column, so WP MCP treats a row with an error as a failed send. Two read-only ops on the plugin-data pair answer "did WordPress send it, and if not, why". emaillog-list-emails lists emails newest first, filtered by recipient, subject, status (sent or failed) and date, with every recipient masked as j***@example.com and no body, headers or IP. emaillog-get-email returns one email with its recipients in full, the subject, status, error, headers with credential headers blanked, and attachment names only. It returns no body by default, because a body can hold a password, a one-time code or a reset link that the agent transcript would keep. Ask for body truncated (1,000 characters) or full (20,000), and the returned body is redacted on a best effort basis: token links become [redacted-link] and the value after words like password, code or token becomes [redacted]. Nothing is written, and no SMTP credential can leave through these ops.

plugin-data-read

What your AI can do

Real WP Mail Logging operations, every write reversible.

  • List sent and failed emails newest first, recipients masked
  • Filter by recipient, subject, status and date
  • Read one email's recipients, headers, error and attachment names
  • Read a redacted body only when asked

Example prompts

Example WP Mail Logging prompts.

Did the order confirmation to the customer on order 1042 go out?

Which emails failed to send today, and what was the error?

Show me the headers of the last password reset email, without the body.

Under the hood

The WP Mail Logging calls, under the hood.

wpmcp, wp-mail-logging

plugin-data-read({ operation: "emaillog-list-emails", args: { status: "failed", since: "2026-11-15" } }), recipients masked; no bodies

plugin-data-read({ operation: "emaillog-get-email", args: { id: 311 } }), no body unless body: truncated or full

In the free plugin

The WP Mail Logging integration is in the free plugin.

The core WP Mail Logging tools ship in the free, GPL plugin with the full snapshot and undo engine, and no trial clock. Pro adds 133 more tools, including Elementor deep editing, the other page builders, the forms adapter pack and, for some integrations, extra operations. The pricing page lists what each tier includes.

Frequently asked

WP Mail Logging MCP: questions, answered.

Why does the agent not see the email body?

A body can carry a password, a one-time code or a reset link, and an agent transcript keeps whatever it reads. So emaillog-get-email returns no body unless you ask for truncated or full, and a returned body has token links and secret values redacted on a best effort basis. The patterns cannot catch every secret, so ask for a body only when you need it.

With WP Mail Logging, can the agent resend or delete logged emails?

No. The email log ops are read-only.

Point your AI at WP Mail Logging.