360 Secure SkillHub
360 安全技能中心

email-send-hanson

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

hansonjames
hansonjames
热度 20.70
最近更新 2026-05-27 11:06:41
分类:协作依赖:代码执行 / 读写文件 / 第三方 API应用场景:邮件起草 / 摘要总结

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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