email-sender

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Email Sender Tool

邮件发送工具

Description

功能描述

Send emails with HTML content, attachments, and multiple recipients via SMTP.
通过SMTP发送包含HTML内容、附件及多收件人的邮件。

Trigger

触发方式

  • /send-email
    command
  • User requests to send email
  • User needs email notification
  • /send-email
    命令
  • 用户请求发送邮件
  • 用户需要邮件通知

Usage

使用方法

bash
undefined
bash
undefined

Send simple email

发送简单邮件

python scripts/send_email.py --to "user@example.com" --subject "Hello" --body "Message content"
python scripts/send_email.py --to "user@example.com" --subject "Hello" --body "Message content"

Send with attachment

发送带附件的邮件

python scripts/send_email.py --to "user@example.com" --subject "Report" --body "See attached" --attachment "report.pdf"
python scripts/send_email.py --to "user@example.com" --subject "Report" --body "See attached" --attachment "report.pdf"

Send HTML email

发送HTML格式邮件

python scripts/send_email.py --to "user@example.com" --subject "Newsletter" --html "template.html"
undefined
python scripts/send_email.py --to "user@example.com" --subject "Newsletter" --html "template.html"
undefined

Environment Variables

环境变量

env
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-password
SMTP_FROM=Your Name <your-email@gmail.com>
env
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-password
SMTP_FROM=Your Name <your-email@gmail.com>

Tags

标签

email
,
smtp
,
notification
,
automation
email
,
smtp
,
notification
,
automation

Compatibility

兼容性

  • Codex: ✅
  • Claude Code: ✅
  • Codex: ✅
  • Claude Code: ✅