/install mailchannels
MailChannels Email API (Send + Delivery Events)
Environment
Required:
MAILCHANNELS_API_KEY(send inX-Api-Key)MAILCHANNELS_ACCOUNT_ID(akacustomer_handle)
Optional:
MAILCHANNELS_BASE_URL(default:https://api.mailchannels.net/tx/v1),MAILCHANNELS_WEBHOOK_ENDPOINT_URL
Domain Lockdown (DNS)
Create a TXT record for each sender domain:
- Host:
_mailchannels.\x3Cyour-domain> - Value:
v=mc1; auid=\x3CYOUR_ACCOUNT_ID>
API Quick Reference
Base URL: ${MAILCHANNELS_BASE_URL:-https://api.mailchannels.net/tx/v1}
- Send:
POST /send - Send async:
POST /send-async - Webhook:
POST /webhook?endpoint=\x3Curl>,GET /webhook,DELETE /webhook,POST /webhook/validate - Public key:
GET /webhook/public-key?id=\x3Ckeyid>
Sending Email
Minimum payload fields: personalizations, from, subject, content.
Use /send for normal traffic and /send-async for queued/low-latency; both produce webhooks.
Persist MailChannels correlation IDs (e.g., request_id).
Delivery Events (Webhooks)
MailChannels POSTs a JSON array. Common fields: email, customer_handle, timestamp, event, request_id.
Bounce fields often include: recipients, status, reason, smtp_id.
Moltbot Hooks Routing
- Enable hooks in
~/.clawdbot/moltbot.json. - Map
/hooks/\x3Cpath>to an agent action viahooks.mappingsand optional transform. - Enroll the public endpoint in MailChannels
/webhook?endpoint=....
Webhook Signature Verification
Headers: Content-Digest, Signature-Input, Signature.
Steps:
- Parse
Signature-Input(name,created,alg,keyid). - Reject stale
createdvalues. - Fetch public key by
keyid. - Recreate the RFC 9421 signature base.
- Verify ed25519 signature (avoid hand-rolling).
Also verify JSON body is an array and every event has
customer_handle == MAILCHANNELS_ACCOUNT_ID.
Correlation + State Updates
Store your internal message ID + MailChannels IDs (e.g., request_id, smtp_id).
Update delivery state from events: processed, delivered, soft-bounced, hard-bounced, dropped.
Operational tips: respond 2xx quickly, process async, store raw events, dedupe retries.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install mailchannels - 安装完成后,直接呼叫该 Skill 的名称或使用
/mailchannels触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Send email using MailChannels Email API 是什么?
Send email via MailChannels Email API and ingest signed delivery-event webhooks into Clawdbot (Moltbot). 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2114 次。
如何安装 Send email using MailChannels Email API?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install mailchannels」即可一键安装,无需额外配置。
Send email using MailChannels Email API 是免费的吗?
是的,Send email using MailChannels Email API 完全免费(开源免费),可自由下载、安装和使用。
Send email using MailChannels Email API 支持哪些平台?
Send email using MailChannels Email API 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Send email using MailChannels Email API?
由 ttulttul(@ttulttul)开发并维护,当前版本 v1.0.0。