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