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-only
SureMail Email & CRM suremails/get-default-connection

Returns 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.

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.