← 返回 Skills 市场
anbangzhiguo

Email Send Skill

作者 周小虎 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
137
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install email-send-cn
功能描述
基于 Nodemailer 的邮件发送技能。使用 nodemailer + SMTP 向任意邮箱发送邮件。支持 163、QQ、Gmail 等主流 SMTP 服务。当用户请求发送邮件时触发。
使用说明 (SKILL.md)

Email Send Skill

使用 nodemailer 通过 SMTP 发送邮件。

安装依赖

使用前请先安装依赖:

npm install

这将安装包括 nodemailer 在内的所有必要依赖。

安全注意事项

  • 请勿在命令行中直接使用真实的 SMTP 凭据,特别是在生产环境中
  • 避免将 SMTP 密码提交到版本控制系统
  • 使用环境变量或安全的配置管理系统来存储敏感信息
  • 定期更新 SMTP 授权码以增强安全性

环境配置

SMTP 凭据通过环境变量配置:

变量 说明 示例
SMTP_HOST SMTP 服务器地址 smtp.example.com
SMTP_PORT 端口 (25/465/587) 465
SMTP_SECURE 是否 SSL (true/false) true
SMTP_USER 用户名/邮箱 [email protected]
SMTP_PASS 授权码/密码 your-smtp-password
SMTP_FROM 发件人显示名 Your Name \[email protected]>

使用方式

直接调用脚本

SMTP_HOST=smtp.163.com \
SMTP_PORT=465 \
SMTP_SECURE=true \
[email protected] \
SMTP_PASS=your-smtp-password \
SMTP_FROM="Your Name \[email protected]>" \
node {baseDir}/scripts/send.js \
  --to "[email protected]" \
  --subject "Email Subject" \
  --body "Email Body"

AI 调用方式

当用户请求发送邮件时,使用 exec 工具执行上述命令。

脚本参数

参数 必填 说明
--to 收件人邮箱
--cc 抄送 (逗号分隔多个)
--subject 邮件主题
--body 邮件正文
--html body 是否为 HTML (设为 "true")

常用 SMTP 配置

  • 163 邮箱: smtp.163.com, 端口 465 (SSL) 或 587 (TLS)
  • QQ 邮箱: smtp.qq.com, 端口 465 (SSL) 或 587 (TLS)
  • Gmail: smtp.gmail.com, 端口 587 (TLS)

授权码需要在邮箱设置中获取。

安全使用建议
This skill appears to do exactly what it says: run a Node script that uses nodemailer to send SMTP mail. Before installing, consider: (1) keep SMTP credentials secret—don’t paste them into chat or commit them to VCS; use environment variables or a secrets manager and prefer app-specific passwords or OAuth where available; (2) npm install will fetch nodemailer from the public registry—verify package.json/lock and run installs in a controlled environment if you worry about supply-chain risk; (3) test with a throwaway account before using real production credentials; and (4) be aware the agent will invoke a shell command (exec) that uses the environment variables you provide—ensure those variables are not present in logs or shared outputs.
功能分析
Type: OpenClaw Skill Name: email-send-cn Version: 1.0.2 The skill is a straightforward utility for sending emails via SMTP using the reputable 'nodemailer' library. The implementation in 'scripts/send.js' correctly uses environment variables for credentials and provides a standard CLI interface for the AI agent to invoke. There are no signs of data exfiltration, malicious execution, or prompt injection; the code logic is entirely consistent with the stated purpose.
能力评估
Purpose & Capability
Name/description (SMTP email send via nodemailer) match the required binaries (node), required env vars (SMTP_HOST, SMTP_USER, SMTP_PASS), and included files (scripts/send.js, package.json). The primary credential is SMTP_PASS which is appropriate for sending mail.
Instruction Scope
SKILL.md instructs installing dependencies (npm install) and running scripts/send.js with SMTP-related environment variables and command-line args. The instructions do not request unrelated files, extra credentials, or external endpoints beyond normal npm and SMTP servers; agent use of exec to run the command is consistent with the stated purpose.
Install Mechanism
This is an instruction-only skill but includes package.json/lock and instructs running npm install, which will fetch nodemailer from the npm registry. Pulling from npm is expected here but has moderate risk compared to a purely instruction-only script (downloads third-party code at install time). No downloads from unknown personal domains or URL shorteners are present.
Credentials
Only SMTP-related environment variables are required (host, user, pass, optional port/secure/from). There are no unrelated secrets requested. The number of env vars is proportional to the task.
Persistence & Privilege
The skill is not always-enabled, is user-invocable, and does not request elevated or persistent system privileges or modify other skills' configuration. It only executes a local Node script when invoked.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install email-send-cn
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /email-send-cn 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- 添加 _meta.json 文件。 - 在 SKILL.md 中加入了 metadata 字段,增强了 skill 元数据描述(如 emoji、必需环境变量、依赖项等)。 - 邮件脚本调用命令中的路径占位符由绝对路径改为 {baseDir}/scripts/send.js。 - 删除环境变量说明块,相关要求整合进 metadata 字段。
v1.0.1
- Added a dedicated environment variable list with descriptions to SKILL.md for clearer SMTP configuration. - Updated documentation to include important security best practices for managing SMTP credentials. - Improved example usage to use placeholder data instead of real credentials. - Removed the sample configuration file scripts/config.json.
v1.0.0
- Complete rewrite: migrated from `msmtp`-based shell usage to a Node.js implementation using Nodemailer. - Added scripts for sending email via SMTP with support for major providers (163, QQ, Gmail, etc). - Emails can be sent by running a Node.js script (`scripts/send.js`) with detailed argument support (to, cc, subject, body, html). - SMTP credentials now fully managed by environment variables for flexibility and security. - Installation now uses npm with a full dependency list in `package.json` and `package-lock.json`. - Obsolete documentation and files related to previous msmtp usage removed.
元数据
Slug email-send-cn
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Email Send Skill 是什么?

基于 Nodemailer 的邮件发送技能。使用 nodemailer + SMTP 向任意邮箱发送邮件。支持 163、QQ、Gmail 等主流 SMTP 服务。当用户请求发送邮件时触发。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 137 次。

如何安装 Email Send Skill?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install email-send-cn」即可一键安装,无需额外配置。

Email Send Skill 是免费的吗?

是的,Email Send Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Email Send Skill 支持哪些平台?

Email Send Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Email Send Skill?

由 周小虎(@anbangzhiguo)开发并维护,当前版本 v1.0.2。

💬 留言讨论