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, default465.EMAIL_USER: mailbox username and sender address.EMAIL_PASSWORD: mailbox password or app password.EMAIL_USE_SSL: set tofalseto 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
- Confirm recipient, subject, and body before sending email.
- Use attachments only with local file paths that exist.
- Read or analyze inbox messages only when the user asks for mailbox inspection.
- 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