List Configured Mailers 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 →List Configured Mailers
Read-onlyList every SMTP connection configured on the site, including which one is primary and which is the backup.
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 reads the 'mailer' array out of the 'gosmtp_options' option and returns one entry per configured SMTP connection: its connection id, nickname, mailer type (e.g. Gmail, Outlook, AWS, Zoho, SMTP.com, Brevo, Mailgun), whether it is the primary connection (connection id 0), and the backup connection id configured on the primary connection, if any. Stored credentials for each connection are never exposed. It takes no input and makes no changes, letting an AI assistant answer 'which SMTP providers are set up on this site?' or verify a failover mailer is in place before diagnosing a delivery problem.
See it in action
You ask your AI assistant
"List all the SMTP mailer connections configured on this site and tell me which one is primary."
Returns
An object with a 'mailers' array; each entry has 'conn_id' (integer), 'nickname' (string or null), 'mail_type' (string), 'is_primary' (boolean, true for connection id 0), and 'backup_connection' (integer or null, the backup connection id configured on the primary connection).
Permission
The current user must have the 'manage_options' capability (administrator).