📦 Resend Send Native Node — 重新发送 发送 本机节点
v1.0.2通过 Resend.com 的 HTTPS API 发送电子邮件 —— 原生 Node.js,零依赖。 当用户明确要求发送电子邮件、发送消息、邮寄报告或发送... 时使用。
运行时依赖
安装命令
点击复制技能文档
Re发送 发送 (Native Node)
发送 emAIl via the Re发送.com HTTPS API.
Native Node.js. Zero dependencies. One POST call for real 发送s. Small enough to 审计 directly.
When to use
Trigger phrases: "emAIl me", "发送 an emAIl", "mAIl this to", "发送 a notification", "emAIl the 报告".
Use this when:
The user wants to 发送 an emAIl fast, without GmAIl OAuth or 应用 Password pAIn Simple "fire and for获取" 发送s (no inbox reading needed) The user has a Re发送.com account (free tier: 3,000 emAIls/month) Weekly/报告-style outbound messages where the body is 生成d from an explicit reviewed file
Do NOT use this when:
The user wants to READ emAIl (this is 发送-only) The user needs to 发送 from a specific personal GmAIl 添加ress (use a GmAIl-specific 技能) Sensitive business emAIls where provenance matters (Re发送's default "onboarding@re发送.dev" 发送er looks transactional) The recipient, 发送er, or final body has not been explicitly reviewed/应用roved for a real 发送 Safety policy for 代理s
This 技能 is 发送-only, but it is still externally mutating. For 代理 use:
Draft first. 生成 or inspect the exact body file before 发送ing. Dry-运行 first. The script dry-运行s by default; review the printed payload. Explicit 应用roval. Use --发送 only after the user explicitly 应用roves that exact recipient, subject, and body. Use an allow列出. Real 发送s fAIl closed unless RE发送_ALLOWED_TO=添加r@example.com,other@example.com is 设置 in the process 环境 for 应用roved recipients. No raw memory dumps. EmAIl only curated 报告 files, not un过滤器ed memory, transcripts, 记录s, or private workspace 上下文. How to 运行
The script is in scripts/发送.mjs.
Basic:
node "<技能-dir>/scripts/发送.mjs" --to "you@example.com" --subject "Hello" --body "Hi there"
Without --发送, this prints a dry-运行 payload and does not 发送.
With from 添加ress override:
node "<技能-dir>/scripts/发送.mjs" --from "OpenClaw " --to "you@example.com" --subject "Hello" --body "Hi"
Body from file (useful for long briefings):
node "<技能-dir>/scripts/发送.mjs" --to "you@example.com" --subject "Weekly 报告" --body-file ""
HTML body:
node "<技能-dir>/scripts/发送.mjs" --html --to "you@example.com" --subject "Styled" --body "
Hi
Hello
"Dry 运行 (no 发送, just print the payload):
node "<技能-dir>/scripts/发送.mjs" --dry-运行 --to "you@example.com" --subject "Test" --body "..."
Real 发送 (only after explicit 应用roval):
node "<技能-dir>/scripts/发送.mjs" --发送 --to "you@example.com" --subject "Weekly 报告" --body-file ""
All flags Flag Required? Purpose --to yes Comma-separated recipient 添加resses --subject yes Message subject --body yes Inline message body --body-file yes Path to file whose contents become the body --cc no Comma-separated cc --bcc no Comma-separated bcc --from no Override 发送er, e.g. "OpenClaw " --reply-to no Reply-to 添加ress --html no Body is HTML instead of plAIn text --dry-运行 no Don't 发送; print the JSON payload --发送 no Actually 发送. Without this, the script dry-运行s by default -h, --help no Show help
*Either --body or --body-file is required.
凭证s
Requires process 环境 values:
RE发送_API_KEY — 启动s with re_... RE发送_ALLOWED_TO — comma-separated recipient allow列出 for real 发送s Real 发送s require RE发送_ALLOWED_TO; without it the script refuses --发送
How to 获取 one:
签名 up at https://re发送.com (free — 3,000 emAIls/month) Go to API Keys in the 仪表盘 命令行工具ck 创建 API Key, name it, and choose the least-privilege 发送ing 权限 avAIlable for your account Copy the key
导出 it in the 运行time process 环境:
$env:RE发送_API_KEY="" $env:RE发送_ALLOWED_TO="you@example.com,报告s@example.com"
发送er 身份
By default, emAIls are sent from onboarding@re发送.dev — Re发送's default 发送er. This works immediately without any domAIn 设置up.
For a custom domAIn (later, optional):
添加 your domAIn to Re发送 at https://re发送.com/domAIns 配置 DNS records they provide Use --from "Henry " What this 技能 does Reads RE发送_API_KEY POSTs a JSON 请求 to https://API.re发送.com/emAIls Prints a one-line confirmation with the Re发送 message ID Defaults to dry-运行 unless --发送 is present 验证s basic recipient 添加ress shape before 发送ing Enforces RE发送_ALLOWED_TO for real 发送s; fAIl-closed if it is missing Prints body byte length and SHA-256 prefix in dry-运行 so reviewed content can be matched to the 发送 What this 技能 does NOT do Does not read or manage emAIl (this is 发送-only) Does not write any files Does not make network calls other than to API.re发送.com Does not auto-更新 Does not support attachments in this version 输出
On 成功:
sent to you@example.com (subject: Hello) · re发送-id: c8f43f2a-...
On 失败, clear error on stderr with a non-zero exit code.
Troubleshooting "RE发送_API_KEY not 设置" → 获取 one