Read, search, and send email via IMAP/SMTP. Supports Gmail, Outlook, and more — with multi-account management and attachment handling.
npx clawhub@latest install imap-smtp-emailRequirements
The IMAP/SMTP Email skill gives your AI agent full email read and send capabilities using standard IMAP and SMTP protocols. Check for new messages, fetch full content, search by sender/subject/date, mark messages read or unread, download attachments, and send emails with CC, BCC, HTML bodies, and file attachments. Works with any standards-compliant mail server, including Gmail, Outlook, QQ Mail, and popular Chinese providers like 163.com, 126.com, and 188.com.
npx clawhub@latest install imap-smtp-emailClick the Install button at the top of this page for one-click setup
Check for new/unread messages, fetch complete email content by UID, search by sender, subject, date range, or read/unread status, and mark messages as read or unread. List all available mailboxes and folders on the server.
Send plain-text or HTML emails to one or more recipients, with optional CC and BCC. Supports file attachments (comma-separated), body content from files, and sender override — all from a single command.
Download all attachments from a specific email by UID, or target a single file by name. Output directory is configurable, and file access is restricted by a whitelist for security.
Configure any number of named accounts using a prefix convention in a single .env file. Switch between accounts at runtime with --account <name> — no separate config files needed.
Pre-tested with Gmail, Outlook/Office 365, QQ Mail, exmail.qq.com, 163.com, vip.163.com, 126.com, vip.126.com, 188.com, vip.188.com, and yeah.net. Works with any standard IMAP/SMTP server.
Credentials are stored at ~/.config/imap-smtp-email/.env with 600 permissions (owner read/write only). Configuration survives skill updates and falls back gracefully to a local .env for backward compatibility.
Schedule the agent to run check --recent 24h each morning, fetch full content for flagged messages, and summarize them — giving you a daily briefing without opening your inbox.
After generating a report file, the agent sends it via SMTP with --attach report.pdf to a distribution list, including CC and a formatted HTML body — no human hand-off required.
Search the inbox for unread messages from a support address, fetch their content, extract key details, and either route them to a ticketing system or send an acknowledgment reply automatically.
Configure a personal and a work account, then query both with --account personal and --account work to surface unread emails across all accounts in a single agent session.
IMAP_HOST, IMAP_USER, IMAP_PASS for your incoming mail server.SMTP_HOST, SMTP_USER, SMTP_PASS for your outgoing mail server.npx clawhub@latest install imap-smtp-emailRequirements
Log in to write a review
No reviews yet. Be the first to share your experience!