Agent Skillsviralcode/openwhale › smtp-send

smtp-send

GitHub

通过 SMTP 协议发送电子邮件,支持纯文本、HTML 格式及文件附件。兼容 Gmail、Outlook 等主流邮箱服务,适用于需要程序化发送邮件或处理邮件相关任务的场景。

skills/smtp-send/SKILL.md viralcode/openwhale

Trigger Scenarios

用户要求发送邮件 提及抄送或接收邮件 需要发送带附件的邮件

Install

npx skills add viralcode/openwhale --skill smtp-send -g -y
More Options

Use without installing

npx skills use viralcode/openwhale@smtp-send

指定 Agent (Claude Code)

npx skills add viralcode/openwhale --skill smtp-send -a claude-code -g -y

安装 repo 全部 skill

npx skills add viralcode/openwhale --all -g -y

预览 repo 内 skill

npx skills add viralcode/openwhale --list

SKILL.md

Frontmatter
{
    "name": "smtp-send",
    "description": "Send emails via SMTP with support for plain text, HTML, and attachments. Use when the user asks to send an email, email someone, or compose and send a message. Supports single recipients and can include file attachments. Works with Gmail, Outlook, Yahoo, QQ Mail, 163 Mail, and any SMTP server."
}

SMTP Send

Send emails via SMTP with support for text, HTML formatting, and file attachments. Works with Gmail, Outlook, Yahoo, QQ Mail, 163 Mail, and any SMTP server.

Quick Start

Send a simple email:

python3 scripts/send_email.py \
  --to recipient@example.com \
  --subject "Meeting Tomorrow" \
  --body "Hi, let's meet at 2pm tomorrow."

Send HTML email:

python3 scripts/send_email.py \
  --to recipient@example.com \
  --subject "Weekly Report" \
  --body "<h1>Report</h1><p>Here are the updates...</p>" \
  --html

Send with attachments:

python3 scripts/send_email.py \
  --to recipient@example.com \
  --subject "Documents" \
  --body "Please find the attached files." \
  --attachments report.pdf,data.csv

Setup

One-time configuration required. Create ~/.smtp_config:

{
  "host": "smtp.gmail.com",
  "port": 587,
  "user": "your-email@gmail.com",
  "password": "your-app-password",
  "from": "your-email@gmail.com",
  "use_ssl": false
}

For Gmail users: Must use App Password (not regular password). See setup.md for detailed instructions on generating app passwords for Gmail, Yahoo, QQ Mail, 163 Mail, and other providers.

Alternatively, use environment variables (see setup.md).

Parameters

  • --to: Recipient email address (required)
  • --subject: Email subject line (required)
  • --body: Email body content (required)
  • --html: Send as HTML email (optional flag)
  • --attachments: Comma-separated file paths (optional)

Common Patterns

User provides recipient and content

When the user says "email john@example.com about the meeting," extract the recipient and compose appropriate subject/body.

User provides only content

If the user says "send an email saying the report is ready" without specifying a recipient, ask who to send it to.

File attachments

When the user mentions "attach the file" or "send the document," use --attachments with the file path. Multiple files can be separated by commas.

HTML formatting

Use --html when the user wants formatted content (headings, lists, emphasis) or explicitly asks for HTML email.

Error Handling

Missing config: If ~/.smtp_config not found and environment variables not set, the script will print an example config and exit. Guide the user to create the config file with their SMTP settings.

Authentication failed: Usually means incorrect password or need to use app password. Direct user to setup.md for provider-specific instructions.

Missing attachments: Script warns but continues sending email without that attachment.

Connection timeout: Check SMTP host/port settings or network connectivity.

Security

  • Credentials stored in ~/.smtp_config (file permissions should be 600)
  • Or use environment variables for better security
  • App passwords recommended over regular passwords
  • Config file should not be committed to version control

Version History

  • 238a4b1 Current 2026-08-20 08:22

Same Skill Collection

skills/agenticflow-skill/SKILL.md
skills/agentlens/SKILL.md
skills/apple-hig/SKILL.md
skills/artifacts-builder/SKILL.md
skills/backend-patterns/SKILL.md
skills/bird/SKILL.md
skills/bot-bowl-party/SKILL.md
skills/botpress-adk/SKILL.md
skills/clawdbot-zoho-email/SKILL.md
skills/computer-use/SKILL.md
skills/deliberate-frontend-redesign/SKILL.md
skills/downloads/SKILL.md
skills/downloads/skills-skills-theme-factory/SKILL.md
skills/fanvue/SKILL.md
skills/frontend-design/SKILL.md
skills/human-optimized-frontend/SKILL.md
skills/linux-service-triage/SKILL.md
skills/miniflux-news/SKILL.md
skills/nextjs-expert/SKILL.md
skills/niri-ipc/SKILL.md
skills/nodetool/SKILL.md
skills/pinak-frontend-guru/SKILL.md
skills/react-email-skills/SKILL.md
skills/remotion-best-practices/SKILL.md
skills/remotion-server/SKILL.md
skills/remotion-video-toolkit/SKILL.md
skills/resume-builder/SKILL.md
skills/slack/SKILL.md
skills/technews/SKILL.md
skills/telegram-reaction-prober/SKILL.md
skills/trmnl/SKILL.md
skills/ui-audit/SKILL.md
skills/ui-design-system/SKILL.md
skills/ui-skills/SKILL.md
skills/ui-ux-master/SKILL.md
skills/ux-audit/SKILL.md
skills/ux-decisions/SKILL.md
skills/ux-researcher-designer/SKILL.md
skills/vercel-react-best-practices/SKILL.md
skills/vision-sandbox/SKILL.md
skills/weather/SKILL.md
skills/web-design-guidelines/SKILL.md
skills/webapp-testing/SKILL.md
skills/winamp/SKILL.md
skills/xcodebuildmcp/SKILL.md
skills/zoho-email-integration/SKILL.md
skills/comfyui-runner/SKILL.md
skills/ui-ux-pro-max/SKILL.md

Metadata

Files
0
Version
238a4b1
Hash
db447086
Indexed
2026-08-20 08:22

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-22 00:16
浙ICP备14020137号-1 $mapa de visitantes$