Get email log details is a WordPress ability from SureMail — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Get email log details

Read-only
SureMail Email & CRM suremails/get-email-log

Retrieves the full stored details of a single logged email, including its body and provider response.

Requires the SureMail plugin installed on WordPress 6.9+ (for Abilities API support). Every ability also requires the current user to have the 'manage_options' capability. Abilities that create, modify, resend, or delete data are additionally gated behind separate site options: the destructive abilities (delete-connection, delete-email-logs) require the 'suremails_abilities_api_delete' option to be enabled, and the write abilities (add-connection, update-connection, send-test-email, resend-email, update-settings) require the 'suremails_abilities_api_edit' option to be enabled.

What it does

Given a log ID from list-email-logs, this ability returns everything SureMail recorded for that email: sender, recipient(s), subject, full body (which may be HTML), headers, delivery status, the provider's response message, the connection used, and send/update timestamps. An AI assistant uses this to inspect exactly what content was sent or to read the provider's error response when diagnosing a failed delivery.

See it in action

You ask your AI assistant

"Get the full details of email log 4521, including the provider's response, so I can see why it failed."

Inputs

Name Type Required Description
id integer Yes The email log ID. Obtain this from list-email-logs.

Returns

An object with the log's id, email_from, email_to, subject, body, headers, status, response, connection, created_at, and updated_at.

Permission

The current user must have the 'manage_options' capability.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.