Use when a user wants to send one or many emails through Sendmux, choose HTTP versus SMTP, add idempotency or attachments, or use MCP, CLI, SDK, or direct HTTP for outbound email.
Use when a user wants to send one or many emails through Sendmux, choose HTTP versus SMTP, add idempotency or attachments, or use MCP, CLI, SDK, or direct HTTP for outbound email.
license
Apache-2.0
metadata
{"author":"sendmux","version":"1.0"}
Sendmux send email
Use this skill when the user is ready to send outbound email through Sendmux or needs code/commands for sending.
Safety first
Do not ask the user to paste an API key.
Do not invent recipients, sender addresses, subject lines, or body content.
Send only after the user supplies or confirms every recipient and message.
For batch sends, confirm the full recipient/message set before calling a send tool.
Use a send-capable smx_mbx_ key or owner-approved Sending-resource smx_agent_ token for the Sending API.
A durable agent profile is read/receive-only. Do not treat its stored credential as send-capable.
Before owner acceptance and sending approval, agent-profile sends fail closed. After approval, the CLI exchanges and caches a one-hour delegated email.send token automatically.
The self-registered inbox is capped at 500 MiB before approval. Sending approval raises it to at least 5 GiB first. Revoking sending does not itself change the current inbox storage allocation.
Choose the send path
User task
Efficient default
One outbound email
POST /emails/send, MCP sending_send_email, CLI sending:send, or SDK sendingSendEmail.
More than one independent outbound email
Batch by default: POST /emails/send/batch, MCP sending_send_email_batch, CLI sending:send:batch, or SDK sendingSendEmailBatch.
Sending API attachment file
Upload first with sending_upload_attachment, sending_create_attachment_upload, CLI --attach, or SDK file helpers; send by attachment_id.
Replying while working inside one mailbox
Use mailbox send from sendmux-mailbox-agent when the workflow is mailbox-centred.
Existing app only supports SMTP
Use SMTP only because the existing tool requires it. For new agent or app integrations, prefer the HTTP Sending API.
Batch sends accept up to 100 messages. A batch response can partially succeed, so inspect every result item.
attachments: up to 10 items. Prefer uploaded refs { "attachment_id": "att_..." }. Inline compatibility form uses filename plus base64 content, optional type, and encoding: "base64".
For real local files, do not ask the model to produce base64. Route attachment-heavy work to sendmux-attachments; use CLI --attach, SDK file helpers, sending_upload_attachment, or delegated sending_create_attachment_upload, then pass attachment_id refs. Sending uploads cap each file at 18 MiB and the final sent message at 25 MB. Mailbox blob_id refs are for mailbox sends, not Sending API sends.
Add Idempotency-Key to every send that may be retried. Use one stable key per logical email or batch.
Same key and same body: returns the cached response for 24 hours.
Same key and different body: returns 409 idempotency_conflict.
Keep keys under 255 characters.
MCP
Use MCP when the user's agent already has the Sending server connected:
One message: sending_send_email.
Multiple messages: sending_send_email_batch.
Local file upload before send: sending_upload_attachment with file_path.
Hosted or shell-capable upload before send: sending_create_attachment_upload, then PUT bytes to the returned URL with the returned headers and no Sendmux API key.
Metadata check for a temporary uploaded attachment: sending_get_attachment.
Include an idempotency key when the client exposes the header parameter. If the MCP client does not expose headers clearly, use CLI, SDK, or direct HTTP for retry-sensitive sends. For attachments through MCP, use sendmux-attachments so the agent chooses file_path, presigned upload, or tiny inline base64 correctly.
CLI
For a self-registered agent, use its profile instead of copying credentials:
The owner must already have accepted the invitation and approved sending. The CLI obtains and caches the short-lived delegated token; the durable read credential is not used directly by the Sending API.
Use --attach ./file.pdf for local files; the CLI uploads bytes first and injects attachment_id refs before sending. Use --body-file for larger JSON payloads or already-prepared Sending API attachment objects.