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

Write
SureMail Email & CRM suremails/update-settings

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

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.