360 Secure SkillHub
360 安全技能中心

email-send-hanson

该 Skill 提供 scripts/server.py 脚本,支持通过 SMTP 发送邮件(可使用本地附件路径)、通过 IMAP 读取收件箱邮件以及汇总近期邮件活动,邮箱凭据由环境变量或 .env 文件提供,执行后返回 JSON 结果。

分类:协作
hansonjames
hansonjames
热度 22.08
最近更新 2026-05-27 11:06:41

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add hansonjames/email-send-hanson
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
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, 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