ONE mail:send
← Receivers

mail:send

mail family

Sends an email from the caller's own active mailbox on inbox.one.ie (never the sign-in mail domain), after the suppression check; 50 a day per mailbox, 3 a day per recipient, 1000 a day across all agent mail

Effect
signal
Fire-and-forget — the call returns once accepted, not once done.
Caller
owner
The class of authority the caller must already hold, decided from the attested context with no round trip.
Reversible
no
This cannot be undone. Dry-run it first where the contract allows.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/signal/mail:send \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "to": "someone@example.com", "subject": "Hello", "text": "Hi from my own address." }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • to string required One plain address, no display name or list
  • subject string required
  • text string required Plain-text body, up to 50,000 characters

Response

The acknowledgement shape — the work itself completes after the call returns.

  • ok boolean
  • from string
  • to string
  • messageId string
  • error string owner_unproven | forbidden | bad_to | subject_and_text_required | no_mailbox | sender_not_configured | suppression_unreadable | recipient_suppressed | daily_cap | recipient_cap | platform_cap | send_failed
  • cannot_run boolean
  • code string

Traffic

Every call to mail:send, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names mail:send, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

API route 5
  • one.ie/web/src/lib/act-as.ts:219
  • one.ie/web/src/lib/identity/lifecycle.ts:413
  • one.ie/web/src/lib/mail/reply.ts:33
  • one.ie/web/src/lib/receiver-index.generated.ts:240
  • one.ie/web/src/lib/resolvers/mail.ts:211
CLI 2
  • packages/cli/src/lib/money-receivers.ts:39
  • packages/cli/src/mail.ts:16
→

Answered by

mail:send one.ie/web/src/lib/resolvers/mail.ts:206 Dispatched through POST /api/signal/mail:send, after the envelope validates the payload.

mail family · 3 more

JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "to": {
      "type": "string",
      "description": "One plain address, no display name or list"
    },
    "subject": {
      "type": "string"
    },
    "text": {
      "type": "string",
      "description": "Plain-text body, up to 50,000 characters"
    }
  },
  "required": [
    "to",
    "subject",
    "text"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "messageId": {
      "type": "string"
    },
    "error": {
      "description": "owner_unproven | forbidden | bad_to | subject_and_text_required | no_mailbox | sender_not_configured | suppression_unreadable | recipient_suppressed | daily_cap | recipient_cap | platform_cap | send_failed",
      "type": "string"
    },
    "cannot_run": {
      "type": "boolean"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}