返回顶部
s

send-email发送邮件

Send emails via SMTP. Configure in ~/.openclaw/openclaw.json under skills.entries.send-email.env.

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

send-email

发送邮件

通过Python脚本发送邮件。SMTP设置由OpenClaw在运行时注入(来自~/.openclaw/openclaw.json → skills.entries.send-email.env)。不要读取任何配置文件(例如~/.openclaw/openclaw.json或workspace/openclaw.json),否则会在工具输出中暴露凭据。只需运行脚本;环境变量会自动注入。不要使用~/.msmtprc。

配置

~/.openclaw/openclaw.json中配置:

json
skills: {
entries: {
send-email: {
enabled: true,
env: {
EMAILSMTPSERVER: smtp.163.com,
EMAILSMTPPORT: 465,
EMAIL_SENDER: your-email@163.com,
EMAILSMTPPASSWORD: YOURAUTHCODE
}
}
}
}

变量描述
EMAILSMTPSERVERSMTP服务器,例如smtp.163.com、smtp.gmail.com
EMAILSMTPPORT
端口,465(SSL)或587(TLS) | | EMAIL_SENDER | 发件人邮箱地址 | | EMAILSMTPPASSWORD | 授权码/应用密码(163/QQ:授权码;Gmail:应用密码) |

代理指令

  1. 1. 凭据:切勿读取配置文件。OpenClaw在脚本运行时注入skills.entries.send-email.env——不要在~/.openclaw/openclaw.json或workspace/openclaw.json上使用读取工具(会暴露密钥)。如果技能已启用,则假定环境变量已配置;不要向用户询问密码。不要使用~/.msmtprc。
  2. 发送邮件:在workspace下运行脚本(不要使用node_modules下的路径):
bash python3 ~/.openclaw/workspace/skills/send-email/send_email.py 收件人 主题 正文
  1. 3. 附件:python3 ~/.openclaw/workspace/skills/send-email/send_email.py 收件人 主题 正文 /路径/到/文件.pdf

使用示例

bash
python3 ~/.openclaw/workspace/skills/send-email/send_email.py recipient@example.com 主题 正文文本
python3 ~/.openclaw/workspace/skills/send-email/send_email.py recipient@example.com 主题 正文 /路径/到/文件.pdf

SMTP参考

  • - 163:smtp.163.com:465,需要授权码(非登录密码)
  • Gmail:smtp.gmail.com:587,需要应用密码
  • QQ:smtp.qq.com:465,需要授权码

故障排除

  • - 认证失败:检查EMAILSMTPPASSWORD是否为授权码或应用密码。
  • 连接失败:检查EMAILSMTPSERVER和EMAILSMTPPORT。

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 send-email-1776368748 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 send-email-1776368748 技能

通过命令行安装

skillhub install send-email-1776368748

下载

⬇ 下载 send-email v1.0.1(免费)

文件大小: 4.88 KB | 发布时间: 2026-4-17 15:20

v1.0.1 最新 2026-4-17 15:20
- Initial release of the send-email skill.
- Allows sending emails via SMTP with environment-based credential injection.
- Supports attachments and multiple mail providers (163, Gmail, QQ).
- Emphasizes security: never read config files directly; all sensitive data is injected at runtime.

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

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

p2p_official_large
返回顶部