返回顶部
r

resend-email重发邮件

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
425
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

resend-email

Resend 邮件发送器

通过 Resend API 发送邮件,无需配置 SMTP。

快速开始

1. 配置

在 .env 文件中设置环境变量:

bash
RESENDAPIKEY=yourresendapi_key
RESEND_FROM=onboarding@resend.dev # 可选,默认为 Resend 测试域名

在 https://resend.com 获取 API 密钥

2. 发送邮件

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.

HTML 邮件

bash
openclaw run resend-email \
--to=user@example.com \
--subject=Welcome \
--html=

Welcome!

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

使用 exec 调用技能


exec openclaw run resend-email \
--to=recipient@example.com \
--subject=Automated Notification \
--text=This email was sent automatically by the agent.

配置选项

变量必需默认值描述
RESENDAPIKEY-您的 Resend API 密钥
RESEND_FROM
否 | onboarding@resend.dev | 默认发件人地址 |

发件人地址

  • - 测试域名:onboarding@resend.dev(默认,无需设置)
  • 自定义域名:noreply@yourdomain.com(需在 Resend 控制台验证域名)

限制

  • - 不支持附件(Resend API 需要 base64 编码)
  • 根据 Resend 套餐存在速率限制
  • 邮件大小限制请参考 Resend 文档

故障排除

RESENDAPIKEY not configured

  • - 在 .env 文件或环境中设置 RESENDAPIKEY

Failed to send email: Unauthorized

  • - 检查 API 密钥是否正确且有效
  • 验证 API 密钥是否具有邮件发送权限

Failed to send email: Bad Request

  • - 检查收件人邮箱格式是否有效
  • 验证发件人地址是否已验证(针对自定义域名)

资源

  • - scripts/send_email.py - 主要邮件发送脚本

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 resend-email-sender-1776277656 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 resend-email-sender-1776277656 技能

通过命令行安装

skillhub install resend-email-sender-1776277656

下载

⬇ 下载 resend-email v1.0.0(免费)

文件大小: 3.36 KB | 发布时间: 2026-4-16 17:39

v1.0.0 最新 2026-4-16 17:39
Initial release: Send emails via Resend API, support text/HTML, multiple recipients, CC/BCC

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部