Get GoSMTP Settings is a WordPress ability from GoSMTP – SMTP for WordPress — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Get GoSMTP Settings

Read-only

Read back the site's global GoSMTP settings: sender identity, force flags, return-path and logging toggles.

Requires the GoSMTP plugin on WordPress 6.9+ for the Abilities API (abilities are registered only when the wp_register_ability() function exists). Registration is also gated behind GoSMTP's own 'Enable AI Abilities' toggle (the ai_abilities.enabled option, switched on from the plugin's AI Abilities settings page) — with it off, none of the abilities are registered at all, regardless of WordPress version. All three abilities are additionally gated by the caller holding the 'manage_options' capability (administrator).

What it does

This ability returns the GoSMTP global settings tree stored in the 'gosmtp_options' option: the configured from-email and from-name, whether those are force-applied over per-plugin/theme values, whether the return-path header is set to the from-email, whether the AI abilities feature itself is enabled, and (when the Pro/premium build is active) whether email logging, smart routing and notifications are enabled. Sensitive mailer credentials such as API keys and passwords are deliberately never included in the response. It takes no input and makes no changes, so an AI assistant can use it to answer 'what's my outgoing mail sender set to?' or confirm settings before troubleshooting delivery issues, without opening the wp-admin settings screen.

See it in action

You ask your AI assistant

"What are my current GoSMTP settings — what's the from-email and from-name, and is return-path enabled?"

Returns

An object with 'from_email' and 'from_name' (string or null), booleans 'force_from_email', 'force_from_name', 'return_path' and 'ai_abilities', and, only when the Pro/premium build defines GOSMTP_PREMIUM, additional booleans 'logs_enabled', 'smart_routing' and 'notifications'.

Permission

The current user must have the 'manage_options' capability (administrator).

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.