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

這個技能的最新版本可以在7w4.net小蔥技能站找到。

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

🤖 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