---
title: "corestack_email_disable"
url: https://docs.corefinity.com/mcp/tools/corestack_email_disable
type: tool
last_updated: 2026-11-13
feature: email
related:
  - https://docs.corefinity.com/api/reference/site-settings/delete-site-email.md
  - https://docs.corefinity.com/guides/sites/site-settings/outbound-email.md
---
# corestack_email_disable

**Remove email sending.** Remove a sending domain: its mail moves to the default (the platform's mail for the last one), then its Mailgun login goes. The default goes last. Type the sending domain in confirm_domain. Scope: write. Long-running: answers with a task.

- Scope: `write`
- Confirmation: `confirm_domain`
- Runs as a task: yes

## When to use it

Remove a sending domain: its mail moves to the default (the platform's mail for the last one), then its Mailgun login goes. The default goes last. Type the sending domain in confirm_domain.

## Inputs

- `site_id` (integer, ≥ 1, required)
- `sending_domain` (string, up to 253 characters): The default when omitted.
- `confirm_domain` (string, up to 253 characters, required): The sending domain being removed, exactly as corestack_email_get shows it.

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "confirm_domain": {
      "description": "The sending domain being removed, exactly as corestack_email_get shows it.",
      "maxLength": 253,
      "type": "string"
    },
    "sending_domain": {
      "description": "The default when omitted.",
      "maxLength": 253,
      "type": "string"
    },
    "site_id": {
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "site_id",
    "confirm_domain"
  ],
  "type": "object"
}
```

## Refusals

- `confirm_mismatch`: confirm_domain must be the sending domain being removed, exactly as corestack_email_get shows it.
- `state`: the default is removed last; while the row has other sending domains, make another one the default first (corestack_email_make_default).
- `unavailable`: email sending is set up on the production row only (staging and development rows send to a test inbox, Mailpit); use the production row. On a WordPress site whose platform plugins are turned off the message says only PHP mail is caught there (corestack_email_get's `mailpit.note`).
- `managed_elsewhere` (message: "This site is managed by another control panel"): another control panel manages this site, so use that control panel for it. This is refused before anything else about the site, as in the Control Panel and the API. Nothing was done.
- The refusals every tool can answer: `invalid_arguments`, `tenant_mismatch`, `scope_required`, `pin_refused`, `rate_limited`, `temporarily_unavailable`, `internal_error` (corestack://guides/how-this-server-works).

## Example

```json
{
  "name": "corestack_email_disable",
  "arguments": {
    "site_id": 4211,
    "sending_domain": "mg.example.org",
    "confirm_domain": "mg.example.org"
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_email_disable with site_id 4211, sending_domain mg.example.org. (Remove email sending.) Tell me what it returned.
```

## The same task elsewhere

- Endpoint: [DELETE /api/corestack/sites/{site}/email](https://docs.corefinity.com/api/reference/site-settings/delete-site-email.md)
- Guide: [Outbound email](https://docs.corefinity.com/guides/sites/site-settings/outbound-email.md)
