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-onlyRetrieves 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.
More SureMail abilities
Add new email connection
Creates and authenticates a new email-sending connection against its provider's credentials.
Delete connection
Permanently deletes an email connection by ID, an action that cannot be undone.
Delete email logs
Permanently deletes one or more email log entries and any attachments used only by them.
Get connection details
Retrieves the full non-sensitive details of a single email connection by its ID.
Get default connection
Returns the connection that WordPress is currently using to send all outgoing emails.
Get email delivery statistics
Returns aggregate sent/failed email counts and a daily breakdown for a given date range.