# Email Sender

> 使用SMTP发送带附件的邮件，支持HTML模板、多收件人和文件附件。基于nodemailer。

使用SMTP发送带附件的邮件，支持HTML模板、多收件人和文件附件。基于nodemailer。

- Page: https://ss33.ai/skills/aidotnet/email-sender-47545827777
- Publisher: aidotnet
- Category: [Business](https://ss33.ai/skills/category/business-y1h0vy) › [Email marketing & promotions](https://ss33.ai/skills/category/business-y1h0vy/email-marketing-and-promotions-d6smym)
- License: MIT
- Source: https://github.com/aidotnet/moyucode/blob/9fa0412ff1d57ca3216835637773ac975cae1009/skills/tools/email-sender/SKILL.md

## Skill

SKILL.md: https://ss33.ai/api/v1/ss33/download/aidotnet/email-sender-47545827777

# Email Sender Tool

## Description
Send emails with HTML content, attachments, and multiple recipients via SMTP.

## Trigger
- `/send-email` command
- User requests to send email
- User needs email notification

## Usage

```bash
# Send simple email
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"

# Send HTML email
python scripts/send_email.py --to "user@example.com" --subject "Newsletter" --html "template.html"
```

## 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>
```

## Tags
`email`, `smtp`, `notification`, `automation`

## Compatibility
- Codex: ✅
- Claude Code: ✅
