360 Secure SkillHub
360 安全技能中心

Mail Sender SMTP

该 Skill 提供 Python 脚本,通过标准 SMTP 服务器向指定收件人发送纯文本邮件,支持自定义收件人、主题与正文。服务器地址、端口、账号与密码需通过环境变量配置,发件人地址可选;文档建议使用应用专用密码并避免硬编码凭据。

jaskies
jaskies
热度 83.56
最近更新 2026-05-11 17:30:43
分类:协作依赖:代码执行 / 第三方 API应用场景:邮件起草 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add mail-sender-vutran
Metadata
name
mail-sender
description
Send emails via SMTP. Use when the user needs to send an email with a custom subject and body. This skill requires SMTP configuration (server, port, user, pass) to be set via environment variables or provided in the workflow.

Mail Sender

This skill allows the agent to send emails using a standard SMTP server (like Gmail, Outlook, etc.).

Setup

The skill uses the following environment variables for configuration:

  • SMTP_SERVER: (e.g., smtp.gmail.com)
  • SMTP_PORT: (e.g., 587)
  • SMTP_USER: Your email address
  • SMTP_PASS: Your app-specific password
  • FROM_EMAIL: The sender's email (optional, defaults to SMTP_USER)

Usage

To send an email, use the bundled script:

python3 skills/public/mail-sender/scripts/send.py \
  --to-email "recipient@example.com" \
  --subject "Hello from OpenClaw" \
  --body "This is a test email sent via the mail-sender skill."

Security Note

For Gmail, use an App Password instead of your primary account password. Never hardcode credentials in the script or conversation history.