通过 MailChannels Email API 发送电子邮件,并将签名的传递事件 Webhook 摄取到 Clawdbot (Moltbot) 中。
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install mailchannels或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install mailchannels⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/mailchannels/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: mailchannels-email-api description: Send email via MailChannels Email API and ingest signed delivery-event webhooks into Clawdbot (Moltbot). homepage: https://docs.mailchannels.net/email-api/ metadata: {"moltbot":{"emoji":"📨","requires":{"env":["MAILCHANNELS_API_KEY","MAILCHANNELS_ACCOUNT_ID"],"bins":["curl"]},"primaryEnv":"MAILCHANNELS_API_KEY"}} ---
Required:
MAILCHANNELS_API_KEY (send in X-Api-Key)MAILCHANNELS_ACCOUNT_ID (aka customer_handle)Optional:
MAILCHANNELS_BASE_URL (default: https://api.mailchannels.net/tx/v1), MAILCHANNELS_WEBHOOK_ENDPOINT_URLCreate a TXT record for each sender domain:
_mailchannels.v=mc1; auid=Base URL: ${MAILCHANNELS_BASE_URL:-https://api.mailchannels.net/tx/v1}
POST /sendPOST /send-asyncPOST /webhook?endpoint=, GET /webhook, DELETE /webhook, POST /webhook/validateGET /webhook/public-key?id=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).
MailChannels POSTs a JSON array. Common fields: email, customer_handle, timestamp, event, request_id. Bounce fields often include: recipients, status, reason, smtp_id.
1) Enable hooks in ~/.clawdbot/moltbot.json. 2) Map /hooks/ to an agent action via hooks.mappings and optional transform. 3) Enroll the public endpoint in MailChannels /webhook?endpoint=....
Headers: Content-Digest, Signature-Input, Signature. Steps:
Signature-Input (name, created, alg, keyid).created values.keyid.Also verify JSON body is an array and every event has customer_handle == MAILCHANNELS_ACCOUNT_ID.
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.
安装 使用 MailChannels 电子邮件 API 发送电子邮件 后,可以对 AI 说这些话来触发它
Send a Slack message to the #engineering channel about the deployment
Formats and sends the message with relevant context, tagging the right people
Summarize all unread messages in my inbox from today
Reads messages across connected channels and returns a prioritized summary
Draft a reply to this customer complaint and send it for review
Writes an empathetic, professional response and routes it to the approval queue
将技能文件夹放到 ~/.claude/skills/mailchannels/ 目录(个人级,所有项目可用),或 .claude/skills/mailchannels/(项目级)。重启 AI 客户端后,用 /mailchannels 主动调用,或让 AI 根据上下文自动发现并使用。
使用 MailChannels 电子邮件 API 发送电子邮件 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
使用 MailChannels 电子邮件 API 发送电子邮件 可免费安装使用。请查阅仓库了解许可证信息。
通过 MailChannels Email API 发送电子邮件,并将签名的传递事件 Webhook 摄取到 Clawdbot (Moltbot) 中。
使用 MailChannels 电子邮件 API 发送电子邮件 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。