ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified communication Safety 3/5

imap-smtp-email

Read and send email via IMAP/SMTP. Check for new/unread messages, fetch content, search mailboxes, mark as read/unread, and send emails with attachments. Works with any IMAP/SMTP server including Gmail, Outlook, 163.com, vip.163.com, 126.com, vip.126.com, 188.com, and vip.188.com.

Why use this skill?

Manage your inbox, send emails, and download attachments automatically. Connect Gmail, Outlook, and more to your OpenClaw agent with this powerful email skill.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/lroccoon/imap-smtp-email-plus
Or

What This Skill Does

The imap-smtp-email skill empowers your OpenClaw agent to become a full-featured email manager. It bridges the gap between your AI workflow and your inbox, enabling the agent to read, parse, search, and send emails directly. By leveraging the industry-standard IMAP and SMTP protocols, it integrates seamlessly with major providers like Gmail, Outlook, and specialized services like 163.com or QQ Mail. Whether you need to automate your support ticketing, parse incoming invoices, or dispatch automated reports to clients, this skill provides the necessary backend connectivity to handle complex email workflows.

Installation

To integrate this skill into your environment, run the following command in your terminal:

clawhub install openclaw/skills/skills/lroccoon/imap-smtp-email-plus

After installation, locate the skill folder and create a .env file. You must populate this file with your provider-specific credentials. Ensure you follow the SMTP settings guidelines—especially for services like 163.com, which require an authorization code instead of your standard password.

Use Cases

  • Automated Triage: Configure your agent to scan the 'INBOX' for unread messages, summarize them, and categorize them based on sentiment or content.
  • File Management: Automatically download attachments from specific senders or subject lines into a designated local directory for further processing.
  • Newsletter Aggregation: Use search filters to pull emails from specific domains over the last 24 hours to generate a daily digest summary.
  • Outbound Communication: Trigger automated follow-ups or confirmation emails when other agent tasks are completed successfully.

Example Prompts

  1. "Check my inbox for unread messages from '[email protected]' sent in the last 2 hours and summarize the issues they are raising."
  2. "Search for emails with the subject 'Invoice' in the last 7 days, download all PDF attachments to the './invoices' folder, and mark the emails as read."
  3. "Send an email to [email protected] with the project status report attached, using the template in the assets folder."

Tips & Limitations

  • Security: Always use App Passwords if available, especially with Gmail or Outlook, to avoid storing your primary account password in the .env file.
  • Self-Signed Certs: If you are connecting to a private internal mail server with a self-signed certificate, set IMAP_REJECT_UNAUTHORIZED=false in your configuration, but be aware of the security implications.
  • Performance: When searching large mailboxes, use specific flags like --recent to limit the scope of the search and improve agent response time.
  • Formatting: Keep in mind that email parsing can vary based on whether an email is structured as plaintext or HTML, so ensure your agent is equipped to handle standard content transformation.

Metadata

Author@lroccoon
Stars1601
Views0
Updated2026-02-27
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-lroccoon-imap-smtp-email-plus": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#email#automation#imap#smtp#productivity
Safety Score: 3/5

Flags: network-access, file-write, file-read, external-api