email-send-hanson

👤 hanson666 📦 v1.0.1 ⭐ 4.5 ⬇️ 243 下载
📄 办公效率 免费

📖 技能介绍


name: email-send-hanson description: Send, read, and summarize email through SMTP and IMAP using environment-based credentials. license: MIT metadata: version: "1.0.0" tags: ["email", "smtp", "imap"]


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

小葱技能站7w4.net发现了升级插件。

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

🤖 AI 评测

这个邮件技能质量良好,功能覆盖了发送和读取邮件的主要需求。它能处理普通文本、HTML格式、带附件的邮件,配置方式也比较安全。代码质量不错,运行稳定,但缺少自动测试,如果遇到特殊情况可能无法保证完全正确。对于需要处理邮件自动化的用户来说,这是一个可以直接使用的工具。

📊 多维度评分

适应性4.6
规范性4.5
有效性4.7
可靠性4.2
可信度4.8

📁 包含文件 (3 个)

📄 SKILL.md 2.3 KB
📄 references/configuration.md 1.2 KB
📄 scripts/server.py 16.3 KB