← 返回
未分类

email-send-hanson

Send, read, and summarize email through SMTP and IMAP using environment-based credentials.
Send, read, and summarize email through SMTP and IMAP using environment-based credentials.
hanson666
未分类 community v1.0.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 50
下载
💾 0
安装
2
版本
#latest

概述

Email Send Hanson Skill

Use this skill when the task requires sending an email, sending HTML email, adding attachments, reading recent inbox messages, or summarizing recent email activity.

Requirements

The script uses these environment variables:

  • EMAIL_HOST: SMTP host.
  • IMAP_HOST: IMAP host.
  • EMAIL_PORT: SMTP port, default 465.
  • EMAIL_USER: mailbox username and sender address.
  • EMAIL_PASSWORD: mailbox password or app password.
  • EMAIL_USE_SSL: set to false to use STARTTLS instead of SMTP SSL.

It also accepts .env files that use SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASS, and SMTP_SECURE.

Process

  1. Confirm recipient, subject, and body before sending email.
  2. Use --html-body when the user asks for HTML formatted email. Always include a plain text --body fallback.
  3. Use --attachment for existing local files.
  4. Use --attachment-content filename=content when the user asks you to create an attachment from provided/generated text content.
  5. Read or analyze inbox messages only when the user asks for mailbox inspection.
  6. Return the script JSON result directly or summarize the important fields.

Script

Use scripts/server.py.

Examples:

uv run langchain-skills script email-send-hanson server.py --execute send --to user@example.com --subject "Hello" --body "Message"
uv run langchain-skills script email-send-hanson server.py --execute send --to user@example.com --subject "HTML" --body "Plain fallback" --html-body "<h1>Hello</h1><p>HTML body</p>"
uv run langchain-skills script email-send-hanson server.py --execute send --to user@example.com --subject "Inline attachment" --body "See attachment" --attachment-content "notes.txt=Generated attachment text"
uv run langchain-skills script email-send-hanson server.py --execute send --to user@example.com --subject "File attachment" --body "See attachment" --attachment .\report.pdf
uv run langchain-skills script email-send-hanson server.py --execute read --limit 5
uv run langchain-skills script email-send-hanson server.py --execute analyze --limit 10

版本历史

共 2 个版本

  • v1.0.1 测试附件和html功能,增加必要注释 当前
    2026-05-27 11:41 安全 安全
  • v1.0.0 初始化skill
    2026-05-27 11:09 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,061 📥 799,140
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,362 📥 318,921
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,440