Send test email 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 →

Send test email

Write
SureMail Email & CRM suremails/send-test-email

Sends a real test email through a specific connection to verify it can deliver mail.

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 actually delivers a test email — subject 'SureMail: Test Email' plus the site name — to the given recipient using the specified connection's provider and from address. It is not a simulation or dry run. It's used to confirm a newly added or existing connection is working correctly. Because it sends a real message to a real inbox, an AI assistant is instructed to always confirm the recipient address with the user first.

See it in action

You ask your AI assistant

"Send a test email through connection conn_123 to admin@example.com to make sure it's working."

Inputs

Name Type Required Description
connection_id string Yes The connection ID to send through. Obtain this from list-connections.
to_email string Yes Recipient email address that will receive the test email.

Returns

An object with success (boolean, whether the test email was sent) and a result message.

Permission

Requires the 'suremails_abilities_api_edit' site option to be enabled, and 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.