resend-email
/install resend-email
Resend Email
Send emails from any Resend-verified domain using the Resend API.
Quick Start
# Send simple email
bash skills/resend-email/scripts/send.sh \
--to "[email protected]" \
--subject "Subject Line" \
--body "Email body text"
# With custom from address
bash skills/resend-email/scripts/send.sh \
--to "[email protected]" \
--from "[email protected]" \
--subject "Subject" \
--body "Body"
Direct API Call
curl -X POST 'https://api.resend.com/emails' \
-H "Authorization: Bearer $(cat ~/.config/resend/credentials.json | jq -r .api_key)" \
-H "Content-Type: application/json" \
-d '{
"from": "[email protected]",
"to": ["[email protected]"],
"subject": "Subject",
"text": "Plain text body"
}'
Configuration
- Credentials:
~/.config/resend/credentials.json - Domain: any Resend-verified domain (configured in your Resend account)
- Default from: set in
credentials.json(e.g.,[email protected])
Receiving (Webhook + Clawdbot)
Use this when you want Resend inbound emails to trigger Clawdbot automatically.
1) Enable Clawdbot hooks
{
hooks: {
enabled: true,
token: "\x3Cshared-secret>",
path: "/hooks",
transformsDir: "~/.clawdbot/hooks",
mappings: [
{
id: "resend",
match: { path: "resend" }, // relative to /hooks (no leading slash)
action: "agent",
deliver: true,
channel: "telegram",
transform: { module: "resend-inbound.js", export: "transform" }
}
]
}
}
Important: match.path is relative to /hooks (e.g., /hooks/resend → resend).
2) Expose the webhook (Tailscale Funnel)
If your gateway is local-only, expose it via Funnel:
/Applications/Tailscale.app/Contents/MacOS/Tailscale funnel --bg 18789
MagicDNS + HTTPS certs must be enabled in your tailnet for TLS to work.
3) Configure Resend webhook
In Resend → Webhooks:
- URL:
https://\x3Cyour-tailnet-host>.ts.net/hooks/resend?token=\x3Cshared-secret> - Event:
email.received
Resend cannot set custom headers, so use ?token=.
4) Fetch full email content
Resend webhooks do not include body text. Use the receiving API:
GET https://api.resend.com/emails/receiving/:id
(See resend-inbound.js for an example transform that fetches the body.)
Email Voice: The Bureaucrat
See references/voice-bureaucrat.md for the default email tone.
Key traits:
- Warm, patient, endlessly polite
- Passive voice ("it is recommended that…")
- Official jargon ("compliance framework", "pursuant to section 14(b)")
- Everything framed as "best practices"
- Bullet points start with "Please note that…"
- Ends with "We appreciate your cooperation"
Tone: DMV supervisor who smiles while denying your form × LinkedIn thought-leader who genuinely believes bureaucracy is beautiful.
When drafting emails, apply this voice unless instructed otherwise.
HTML Emails
curl -X POST 'https://api.resend.com/emails' \
-H "Authorization: Bearer $RESEND_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "[email protected]",
"to": ["[email protected]"],
"subject": "Subject",
"html": "\x3Ch1>Hello\x3C/h1>\x3Cp>HTML content\x3C/p>"
}'
Notes
send.shpreserves line breaks in--body(no literal\output).- Use
--htmlfor rich formatting; default is plain text.
Common Patterns
Transactional notification:
# Order confirmation, welcome email, etc.
bash skills/resend-email/scripts/send.sh \
--to "[email protected]" \
--subject "Your Request Has Been Processed" \
--body "$(cat \x3C\x3C'EOF'
Dear Valued Individual,
Please note that your recent submission has been received and processed in accordance with standard operating procedures.
It should be understood that all requests are handled in the order received, pursuant to our established compliance framework.
We appreciate your cooperation in maintaining an orderly process.
Warm regards,
Clawd
Agent Services Division
EOF
)"
Reply to inquiry: Apply bureaucrat voice. Be helpful while maintaining the veneer of official procedure.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install resend-email - 安装完成后,直接呼叫该 Skill 的名称或使用
/resend-email触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
resend-email 是什么?
Send emails via Resend API from any verified domain. Use when sending emails, notifications, or automated messages. Supports HTML and plain text. Default voi... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1086 次。
如何安装 resend-email?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install resend-email」即可一键安装,无需额外配置。
resend-email 是免费的吗?
是的,resend-email 完全免费(开源免费),可自由下载、安装和使用。
resend-email 支持哪些平台?
resend-email 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 resend-email?
由 Vlad Rimsha(@vladchatware)开发并维护,当前版本 v1.0.3。