← 返回 Skills 市场
ttulttul

Send email using MailChannels Email API

作者 ttulttul · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
2114
总下载
1
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install mailchannels
功能描述
Send email via MailChannels Email API and ingest signed delivery-event webhooks into Clawdbot (Moltbot).
使用说明 (SKILL.md)

MailChannels Email API (Send + Delivery Events)

Environment

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_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

  1. Enable hooks in ~/.clawdbot/moltbot.json.
  2. Map /hooks/\x3Cpath> to an agent action via hooks.mappings and optional transform.
  3. 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 created values.
  • 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.

安全使用建议
This skill's runtime instructions look legitimate for MailChannels integration, but the published registry metadata does not declare the environment variables and binary ('curl') that SKILL.md requires, and the docs instruct writing to ~/.clawdbot/moltbot.json. Before installing: (1) confirm the platform will securely store and scope MAILCHANNELS_API_KEY and MAILCHANNELS_ACCOUNT_ID and won't expose them elsewhere; (2) confirm you are comfortable allowing the skill to modify ~/.clawdbot/moltbot.json or ask the author to explicitly declare this config path; (3) request source code or an install spec if you need to review exact behavior; (4) test in a staging account, ensure webhook endpoint is hardened (validate signatures with a vetted ed25519 library), and monitor for unexpected outbound traffic or attempts to read other files. The mismatches may be innocuous packaging errors, but treat them as a red flag until clarified.
功能分析
Type: OpenClaw Skill Name: mailchannels Version: 1.0.0 The skill bundle is benign. It provides instructions and metadata for integrating with the MailChannels Email API, requiring `MAILCHANNELS_API_KEY` and `MAILCHANNELS_ACCOUNT_ID` for its stated purpose, and `curl` for API interaction. There is no evidence of prompt injection, data exfiltration, malicious execution, persistence, or obfuscation in `SKILL.md` or `_meta.json`.
能力评估
Purpose & Capability
The skill's purpose (send email + ingest MailChannels delivery webhooks) aligns with the instructions (send endpoints, webhook enrollment, signature verification, persisting correlation IDs). However the registry metadata provided with the skill (no required env vars, no binaries) is inconsistent with the SKILL.md metadata and content, which require MAILCHANNELS_API_KEY, MAILCHANNELS_ACCOUNT_ID and 'curl' (primaryEnv MAILCHANNELS_API_KEY). This mismatch is unexpected and should be resolved.
Instruction Scope
SKILL.md instructs the agent to enable hooks in '~/.clawdbot/moltbot.json' and to persist MailChannels IDs and raw events. Referencing and modifying an agent/user config path is within the feature (webhook routing) but it is not declared in the registry. The instructions also require network calls to fetch webhook public keys and verify ed25519 signatures — these are appropriate, but the doc gives broad operational guidance (store raw events, process async) that implies persistent storage and write access to user config/files.
Install Mechanism
No install spec and no code files (instruction-only) — minimal disk footprint and low install risk. There is no downloaded/extracted code. That reduces risk compared to an installer that fetches arbitrary binaries.
Credentials
The environment variables the SKILL.md requires (MAILCHANNELS_API_KEY, MAILCHANNELS_ACCOUNT_ID, optional MAILCHANNELS_BASE_URL and MAILCHANNELS_WEBHOOK_ENDPOINT_URL) are appropriate and proportional to sending email and validating webhooks. The issue is that the registry summary claims no required envs/binaries while the SKILL.md metadata requires them (and lists 'curl'). This inconsistency could lead to unexpected behavior or misconfiguration.
Persistence & Privilege
The skill is not always-enabled and does not request elevated platform privileges. It does instruct modifying the agent's own config (~/.clawdbot/moltbot.json) which is normal for integrating webhooks into Clawdbot, but users should confirm that such writes are acceptable. Autonomous invocation is allowed, which is platform default.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install mailchannels
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /mailchannels 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the MailChannels Email API skill for sending emails and ingesting signed delivery-event webhooks. - Supports sending email via MailChannels with required environment configuration. - Detailed setup instructions for both API usage and domain authentication (DNS TXT record). - Integration instructions for event webhooks, including signature verification steps and Moltbot hooks routing. - Provides guidance on correlating message IDs and best practices for handling delivery events.
元数据
Slug mailchannels
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

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。

💬 留言讨论