About email-sender
email-sender is a skill for sending email through SMTP or email service APIs, with templating, attachments, and configurable delivery controls. It is intended for automated notifications, bulk messages, and workflow-based email delivery.
Key features
- 01SMTP and email API delivery
- 02Jinja2 dynamic templates
- 03Multiple attachments with checks
- 04Automatic retries and logging
- 05YAML configuration for environments
Use cases
- 01Send CI/CD status notifications
- 02Distribute reports or user notices
- 03Send welcome, reset, and order emails
- 04Add email delivery to automated workflows
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ buff-m/ email-sender-skill --skill email-senderAfter installing, type/email-senderin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
.gitignoreREADME.mdrequirements.txtLICENSEconfig/config_qq_example.yamlconfig.example.yamlscripts/send_email.pyconfig_loader.py__init__.pytemplate_manager.pytemplates/alert.htmldefault.htmlwelcome.htmlDetails
From the project READMEEmail Sender Skill
功能概述
email-sender是一个功能完整的邮件自动发送工具,支持:
- 多种发送方式: SMTP协议和邮件服务API(SendGrid/MailGun/SES)
- 模板引擎: 内置Jinja2模板系统,支持动态内容生成
- 附件支持: 支持多附件上传,自动大小和类型检查
- 错误处理: 自动重试机制,详细日志记录
- 安全保护: 速率限制、证书验证、附件类型检查
- 配置灵活: YAML配置文件,支持多环境切换
典型使用场景
- 自动化通知: CI/CD流水线状态通知、系统告警
- 批量邮件: 营销邮件、用户通知、报表分发
- 工作流集成: 作为自动化流程的一环发送邮件
- 模板邮件: 欢迎邮件、密码重置、订单确认
核心脚本
scripts/send_email.py: 主发送脚本,处理邮件发送逻辑scripts/template_manager.py: Jinja2模板管理器scripts/config_loader.py: YAML配置加载器
模板资源
templates/default.html: 通用邮件模板templates/welcome.html: 欢迎新用户邮件templates/alert.html: 系统警报邮件
配置文件
config/config.yaml: 邮件服务器和功能配置skill.yaml: Skill元数据和接口定义
快速开始
# 1. 安装依赖
pip install -r requirements.txt
# 2. 配置邮箱(编辑config/config.yaml)
# 3. 发送测试邮件
python scripts/send_email.py --to [email protected] --subject "测试" --body "测试内容"
详细文档请参考 README.md
Comments
Markdown supported