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"]
7w4.net小葱技能。
Use this skill when the task requires sending an email, sending HTML email, adding attachments, reading recent inbox messages, or summarizing recent email activity.
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.
--html-body when the user asks for HTML formatted email. Always include a plain text --body fallback.--attachment for existing local files.--attachment-content filename=content when the user asks you to create an attachment from provided/generated text content.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
这个邮件技能质量良好,功能覆盖了发送和读取邮件的主要需求。它能处理普通文本、HTML格式、带附件的邮件,配置方式也比较安全。代码质量不错,运行稳定,但缺少自动测试,如果遇到特殊情况可能无法保证完全正确。对于需要处理邮件自动化的用户来说,这是一个可以直接使用的工具。