Xpersona
E

Email Send Skill

CLAWHUB · Unverified

基于 Nodemailer 的邮件发送技能。使用 nodemailer + SMTP 向任意邮箱发送邮件。支持 163、QQ、Gmail 等主流 SMTP 服务。当用户请求发送邮件时触发。 Skill: Email Send Skill Owner: anbangzhiguo Summary: 基于 Nodemailer 的邮件发送技能。使用 nodemailer + SMTP 向任意邮箱发送邮件。支持 163、QQ、Gmail 等主流 SMTP 服务。当用户请求发送邮件时触发。 Tags: latest:1.0.2 Version history: v1.0.2 | 2026-04-24T03:02:44.478Z | user - 添加 _meta.json 文件。 - 在 SKILL.md 中加入了 metadata 字段,增强了 skill 元数据描述(如 emoji、必需环境变量、依赖项等)。 - 邮件脚本调用命令中的路径占位符由绝对路径改为 {baseDir}/scripts/send.js。 - 删除环境变量说明块,相关要求整合进 metadata 字段。 v1.0.1 | 2026-04-07T02

62
Rank
84
Safety
966
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 966 downloads reported by the source. Last updated 10/12/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1754kmvcw51w5by5c7ehx1v7s84d5s1:email-send-cn
  1. Node.js workspace detected. Install dependencies securely: run `npm ci --ignore-scripts` to prevent post-install lifecycle triggers from running arbitrary code, then selectively audit the dependency tree.
  2. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-anbangzhiguo-email-send-cn/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

12,629 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: email-send
description: 基于 Nodemailer 的邮件发送技能。使用 nodemailer + SMTP 向任意邮箱发送邮件。支持 163、QQ、Gmail 等主流 SMTP 服务。当用户请求发送邮件时触发。
metadata:
  {
    "openclaw": {
      "emoji": "📧",
      "user-invocable": true,
      "requires": {
        "env": ["SMTP_HOST", "SMTP_USER", "SMTP_PASS"],
        "bins": ["node"]
      },
      "primaryEnv": "SMTP_PASS"
    }
  }
---

# Email Send Skill

使用 nodemailer 通过 SMTP 发送邮件。

## 安装依赖

使用前请先安装依赖:

```bash
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 | 用户名/邮箱 | your-email@example.com |
| SMTP_PASS | 授权码/密码 | your-smtp-password |
| SMTP_FROM | 发件人显示名 | Your Name <your-email@example.com> |

## 使用方式

### 直接调用脚本

```bash
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 | 是 | 邮件正文 |
| --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)

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

_meta.json

{
  "ownerId": "kn7c8dx9gmanmapgbdyss5pd9n82r79y",
  "slug": "email-send-cn",
  "version": "1.0.2",
  "publishedAt": 1776999764478
}

skill-card.md

## Description:

Sends email through SMTP using Nodemailer, with support for common providers such as 163, QQ, and Gmail.

This skill is ready for commercial/non-commercial use.

## Publisher:

[anbangzhiguo](https://clawhub.ai/user/anbangzhiguo)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to let an agent send plain text or HTML email through a configured SMTP account.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: SMTP credentials can be exposed if real secrets are placed directly in command text or logs.

Mitigation: Use a dedicated SMTP app password with minimal permissions and inject it through a secret manager or inherited environment.

Risk: The skill can send outbound email broadly once SMTP credentials are configured.

Mitigation: Require explicit user confirmation before sending and review recipient, subject, body, cc, and html mode.

Risk: Evidence reports a vulnerable Nodemailer dependency.

Mitigation: Update Nodemailer to a patched supported version before use.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/anbangzhiguo/skills/email-send-cn)
- [Nodemailer package artifact](https://registry.npmjs.org/nodemailer/-/nodemailer-6.10.1.tgz)

## Skill Output:

**Output Type(s):** [Shell commands, Configuration, Text]

**Output Format:** [Command-line execution with textual success or failure output]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires SMTP_HOST, SMTP_USER, and SMTP_PASS; SMTP_PORT, SMTP_SECURE, SMTP_FROM, cc, subject, body, and html mode are optional.]

## Skill Version(s):

1.0.2 (source: server release metadata and package.json)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

package-lock.json

{
  "name": "email-send",
  "version": "1.0.0",
  "lockfileVersion": 3,
  "requires": true,
  "packages": {
    "": {
      "name": "email-send",
      "version": "1.0.0",
      "license": "ISC",
      "dependencies": {
        "nodemailer": "^6.9.0"
      }
    },
    "node_modules/nodemailer": {
      "version": "6.10.1",
      "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.10.1.tgz",
      "integrity": "sha512-Z+iLaBGVaSjbIzQ4pX6XV41HrooLsQ10ZWPUehGmuantvzWoDVBnmsdUcOIDM1t+yPor5pDhVlDESgOMEGxhHA==",
      "license": "MIT-0",
      "engines": {
        "node": ">=6.0.0"
      }
    }
  }
}

package.json

{
  "name": "email-send",
  "version": "1.0.2",
  "description": "基于 Nodemailer 的邮件发送技能",
  "main": "scripts/send.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": ["email", "smtp", "nodemailer"],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "nodemailer": "^6.9.0"
  }
}

Sponsored

Ads related to Email Send Skill and adjacent AI workflows.