send-email

👤 fontstep 📦 v1.0.1 ⭐ 4.4 ⬇️ 8.3K 下载
📄 办公效率 免费 🔑 需 API Key

📖 技能介绍


name: send-email description: Send emails via SMTP. Configure in ~/.openclaw/openclaw.json under skills.entries.send-email.env. metadata: {"openclaw":{"emoji":"📧","requires":{"anyBins":["python3"]}}}


Send Email

Send emails via the Python script. SMTP settings are injected by OpenClaw at runtime when the script runs (from ~/.openclaw/openclaw.jsonskills.entries.send-email.env). Do not read any config file (e.g. ~/.openclaw/openclaw.json or workspace/openclaw.json) — that would expose credentials in tool output. Just run the script; env is injected automatically. Do not use ~/.msmtprc.

Configuration

Configure in ~/.openclaw/openclaw.json:

"skills": {
  "entries": {
    "send-email": {
      "enabled": true,
      "env": {
        "EMAIL_SMTP_SERVER": "smtp.163.com",
        "EMAIL_SMTP_PORT": "465",
        "EMAIL_SENDER": "your-email@163.com",
        "EMAIL_SMTP_PASSWORD": "YOUR_AUTH_CODE"
      }
    }
  }
}
Variable Description
EMAIL_SMTP_SERVER SMTP server, e.g. smtp.163.com, smtp.gmail.com
EMAIL_SMTP_PORT Port, 465 (SSL) or 587 (TLS)
EMAIL_SENDER Sender email address
EMAIL_SMTP_PASSWORD Authorization code / app password (163/QQ: auth code; Gmail: App Password)

Agent instructions

  1. Credentials: Never read config files. OpenClaw injects skills.entries.send-email.env when the script runs — do not use the read tool on ~/.openclaw/openclaw.json or workspace/openclaw.json (exposes secrets). If the skill is enabled, assume env is configured; do not ask the user for passwords. Do not use ~/.msmtprc.
  2. Send mail: Run the script under workspace (do not use the path under node_modules): bash python3 ~/.openclaw/workspace/skills/send-email/send_email.py "recipient" "Subject" "Body"
  3. Attachment: python3 ~/.openclaw/workspace/skills/send-email/send_email.py "recipient" "Subject" "Body" "/path/to/file.pdf"

Usage examples

python3 ~/.openclaw/workspace/skills/send-email/send_email.py 'recipient@example.com' 'Subject' 'Body text'
python3 ~/.openclaw/workspace/skills/send-email/send_email.py 'recipient@example.com' 'Subject' 'Body' '/path/to/file.pdf'

SMTP reference

访问小葱技能站7w4.net,解锁更多实用的AI技能插件。

  • 163: smtp.163.com:465, requires authorization code (not login password)
  • Gmail: smtp.gmail.com:587, requires App Password
  • QQ: smtp.qq.com:465, requires authorization code

Troubleshooting

  • Authentication failed: Check that EMAIL_SMTP_PASSWORD is the authorization code or App Password.
  • Connection failed: Check EMAIL_SMTP_SERVER and EMAIL_SMTP_PORT.

🤖 AI 评测

这个 Skill 质量较好,邮件发送功能完整,支持多种主流邮箱服务商,还带附件功能。文档写得很清楚,配置说明详细,新手也能快速上手。不过 Bash 版本依赖 msmtp/mutt 这类外部程序,在部分系统上可能无法直接使用。总体来说是一个实用性强、文档完善的 Skill,但跨平台兼容性还有优化空间。

📊 多维度评分

适应性4.4
规范性4.1
有效性4.5
可靠性4.2
可信度5

📁 包含文件 (6 个)

📄 README.md 1.4 KB
📄 SKILL.md 2.6 KB
📄 _meta.json 129 B
📄 send_email.py 3.6 KB
📄 send_email.sh 1.6 KB
📄 skill-card.md 1.9 KB