Send emails using Resend API. Use when the user needs to send emails without configuring SMTP servers. Supports text and HTML emails, multiple recipients, CC/BCC, and bulk sending. Ideal for notifications, alerts, newsletters, and automated email workflows.
通过 Resend API 发送邮件,无需配置 SMTP。
在 .env 文件中设置环境变量:
bash
RESENDAPIKEY=yourresendapi_key
RESEND_FROM=onboarding@resend.dev # 可选,默认为 Resend 测试域名
在 https://resend.com 获取 API 密钥
bash
openclaw run resend-email \
--to=recipient@example.com \
--subject=Hello \
--text=Plain text message
bash
openclaw run resend-email \
--to=user@example.com \
--subject=Notification \
--text=Your task is complete.
bash
openclaw run resend-email \
--to=user@example.com \
--subject=Welcome \
--html=
Thanks for joining.
bash
openclaw run resend-email \
--to=user1@example.com,user2@example.com,user3@example.com \
--subject=Team Update \
--text=Meeting at 3 PM.
bash
openclaw run resend-email \
--to=primary@example.com \
--cc=manager@example.com \
--bcc=archive@example.com \
--subject=Report \
--text=Please find the attached report.
当代理需要发送邮件时:
bash
| 变量 | 必需 | 默认值 | 描述 |
|---|---|---|---|
| RESENDAPIKEY | 是 | - | 您的 Resend API 密钥 |
| RESEND_FROM |
RESENDAPIKEY not configured
Failed to send email: Unauthorized
Failed to send email: Bad Request
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 resend-email-sender-1776277656 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 resend-email-sender-1776277656 技能
skillhub install resend-email-sender-1776277656
文件大小: 3.36 KB | 发布时间: 2026-4-16 17:39