buff-m/email-sender-skill56 installs
email-sender
支持SMTP和API的邮件自动发送工具,内置Jinja2模板引擎,适用于自动化工作流、批量邮件发送、系统通知等场景。支持HTML邮件、多附件、模板变量、错误重试等企业级功能。
How do I install this agent skill?
npx skills add https://github.com/buff-m/email-sender-skill --skill email-senderIs this agent skill safe to install?
- Gen Agent Trust Hubwarn
The skill manages sensitive SMTP credentials in plaintext configuration files and exposes an HTML injection vulnerability in its templates through the use of the '| safe' filter. Critical logic in 'send_email.py' is missing from the repository, hindering a full security verification.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
3/13 files flagged
What does this agent skill do?
Email 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 user@example.com --subject "测试" --body "测试内容"
详细文档请参考 README.md
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/buff-m/email-sender-skill/email-sender">View email-sender on skillZs</a>