send-email

Verified·Scanned 2/17/2026

This skill sends SMTP email using the included send_email.py, reading credentials from env vars such as EMAIL_SMTP_SERVER and EMAIL_SMTP_PASSWORD. It requires executing python3 ~/.openclaw/workspace/skills/send-email/send_email.py and will connect to SMTP hosts like smtp.163.com:465.

from clawhub.ai·v63dd78f·9.2 KB·0 installs
Scanned from 1.0.1 at 63dd78f · Transparency log ↗
$ vett add clawhub.ai/fontstep/send-email

Send Email Skill

OpenClaw skill for sending emails via SMTP using the Python script. Credentials are read from openclaw.jsonskills.entries.send-email.env (no ~/.msmtprc required).

Features

  • ✅ Support for 163, Gmail, QQ, and other SMTP providers
  • ✅ Python script with env from openclaw.json
  • ✅ Attachment support
  • ✅ No ~/.msmtprc or manual SMTP file config needed

Installation

Place this skill in workspace/skills/send-email/. It is then available to the agent.

Configuration

Configure SMTP 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"
        }
      }
    }
  }
}

The agent runs python3 {baseDir}/send_email.py; OpenClaw injects these env vars at runtime.

Usage

The agent sends mail by running:

python3 {baseDir}/send_email.py "recipient@example.com" "Subject" "Body text"

With attachment:

python3 {baseDir}/send_email.py "recipient@example.com" "Subject" "Body" "/path/to/file.pdf"

Example prompts: