AGENT SKILL

email-send-hanson

Send, read, and summarize email through SMTP and IMAP using environment-based credentials.

License 许可
MIT
最近更新
2026-06-10
Stars
★ 3
Forks
0

01 前言 Front Matter

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

03 SKILL.md 正文

Email Send Hanson Skill

Use this skill when the task requires sending an email, 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 attachments only with local file paths that exist.
  3. Read or analyze inbox messages only when the user asks for mailbox inspection.
  4. 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 read --limit 5
uv run langchain-skills script email-send-hanson server.py --execute analyze --limit 10

04 同仓库更多 Skills