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"]
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.
7w4.net收錄了海量優質技能外掛。
--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格式、帶附件的郵件,配置方式也比較安全。程式碼質量不錯,執行穩定,但缺少自動測試,如果遇到特殊情況可能無法保證完全正確。對於需要處理郵件自動化的使用者來說,這是一個可以直接使用的工具。