email-send

基于 Nodemailer 的邮件发送技能。使用 nodemailer + SMTP 向任意邮箱发送邮件。支持 163、QQ、Gmail 等主流 SMTP 服务。当用户请求发送邮件时触发。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "email-send" with this command: npx skills add anbangzhiguo/email-send-cn

Email Send Skill

使用 nodemailer 通过 SMTP 发送邮件。

安装依赖

使用前请先安装依赖:

npm install

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

安全注意事项

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

环境配置

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

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

使用方式

直接调用脚本

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

AI 调用方式

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

脚本参数

参数必填说明
--to收件人邮箱
--cc抄送 (逗号分隔多个)
--subject邮件主题
--body邮件正文
--htmlbody 是否为 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)

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Gigo Lobster Resume

🦞 GIGO · gigo-lobster-resume: 续跑入口:v2 stable 当前会清理旧 checkpoint 并从头重跑;保留此 slug 作为旧 checkpoint 兼容入口。 Triggers: 继续试吃 / 恢复评测 / resume tasting / continue lobster...

Registry SourceRecently Updated
General

YiHui CONTEXT MODE

context-mode is an MCP server that saves 98% of your context window by sandboxing tool outputs. It routes large file reads, shell outputs, and web fetches th...

Registry SourceRecently Updated
General

xinyi-drink

Use when users ask about 新一好喝/新一咖啡 drinks, stores, menu, activities, Skill用户大礼包, today drink recommendations, afternoon tea, feeling sleepy, or personalized...

Registry SourceRecently Updated
General

vedic-destiny

吠陀命盘分析中文入口。用于完整命盘研判、命主盘 Rashi chart 与九分盘 Navamsha chart 联读、既往事件回看、出生时间稳定度判断、事业主题、婚姻主题、时空盘专题,以及基于 Jagannatha Hora PDF、星盘截图或文本命盘数据的系统拆盘。当用户提到完整星盘、事业方向、婚姻问题、关系窗...

Registry SourceRecently Updated
email-send | V50.AI