Update plugin settings 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 →Update plugin settings
WriteChanges one or more SureMail plugin-wide settings, such as logging or simulation mode.
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 updates any combination of log_emails, email_simulation, delete_email_logs_after, email_summary_active, and email_summary_day; only the settings supplied in the input are changed, and the rest are left as-is. Changes take effect immediately for all future outgoing emails. Enabling email_simulation stops all real email delivery site-wide (emails are still logged but never sent), so an AI assistant is instructed to call get-settings first and confirm changes with the user, especially for that setting.
See it in action
You ask your AI assistant
"Turn on the weekly email summary report and set it to send every Monday."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| log_emails | string | No | Enable ('yes') or disable ('no') email logging. When disabled, no email records are saved. |
| email_simulation | string | No | Enable ('yes') or disable ('no') email simulation mode. When enabled, no emails will actually be delivered — they are only logged. |
| delete_email_logs_after | string | No | Automatically delete email logs older than this period. One of: none, 1_day, 7_days, 30_days, 365_days, 730_days. |
| email_summary_active | string | No | Enable ('yes') or disable ('no') the weekly email delivery summary report. |
| email_summary_day | string | No | Day of the week to send the weekly summary report. One of: monday, tuesday, wednesday, thursday, friday, saturday, sunday. |
Returns
An object with success (boolean) 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.