Get default connection 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 default connection
Read-onlyReturns the connection that WordPress is currently using to send all outgoing emails.
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
This ability returns the site's default email connection — the configured connection with the highest priority (lowest sequence number) — reporting its provider type, sender email, ID, and title. If no connections exist, every field comes back as an empty string. An AI assistant can use this as a quick health check to confirm which provider and address the site is actively sending from before troubleshooting delivery issues.
See it in action
You ask your AI assistant
"Which email connection is currently set as the default for sending outgoing emails on this site?"
Returns
An object with the default connection's type, email, id, and connection_title (all empty strings if no connection is configured).
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 email delivery statistics
Returns aggregate sent/failed email counts and a daily breakdown for a given date range.
Get email log details
Retrieves the full stored details of a single logged email, including its body and provider response.