IMAP/SMTP Email Management Skill for Openclaw

A comprehensive email automation tool that enables AI agents to read, search, and send messages via standard IMAP and SMTP protocols.

lroccoon
v1.0.0
Feb 23, 2026
0
1.9k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install imap-smtp-email-plus

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install imap-smtp-email-plus using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is IMAP/SMTP Email Management Skill?

This skill provides a robust interface for interacting with email servers, making it a cornerstone for communication within the Openclaw Skills ecosystem. It allows for deep integration with popular providers like Gmail, Outlook, and 163.com, enabling agents to perform complex inbox operations programmatically. By leveraging this tool, developers can build agents that not only monitor incoming correspondence but also respond with rich HTML content and manage attachments dynamically.

The IMAP/SMTP Email skill is designed for versatility, supporting secure TLS/SSL connections and providing granular control over mailbox organization. Whether you need to archive old messages or trigger workflows based on specific email subjects, this integration ensures your AI agent has the necessary access to standard communication channels while maintaining high standards of security and reliability.

IMAP/SMTP Email Management Skill Use Cases

  • Automating responses to customer inquiries by monitoring specific IMAP mailboxes.
  • Extracting and downloading attachments from incoming emails for automated data processing.
  • Sending scheduled reports or notifications using professional SMTP configurations.
  • Organizing high-volume inboxes by automatically moving messages to specific archive folders based on filters.

How IMAP/SMTP Email Management Skill Works

  1. The agent initializes a connection to the IMAP server using the credentials provided in the environment configuration.
  2. For retrieval, the skill executes search queries to identify messages meeting specific criteria such as unread status or sender address.
  3. The fetch command retrieves the full content of an email, allowing the agent to process text or HTML bodies.
  4. When sending, the skill uses the SMTP protocol to package messages, including attachments and CC/BCC recipients, for delivery.
  5. Post-processing actions like marking messages as read or moving them to different mailboxes ensure the inbox remains organized.

IMAP/SMTP Email Management Skill Setup

Begin by installing the required dependencies for this Openclaw Skills component:

npm install

Next, configure your environment by creating a .env file in the skill folder. Populate it with your specific provider details:

# IMAP Configuration
IMAP_HOST=imap.gmail.com
IMAP_PORT=993
[email protected]
IMAP_PASS=your_password
IMAP_TLS=true

# SMTP Configuration
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
[email protected]
SMTP_PASS=your_password

Note: For Gmail or 163.com, ensure you use an App Password or Authorization Code instead of your primary account password.

IMAP/SMTP Email Management Skill Data Schema & Taxonomy

The skill manages email data and local file outputs using the following structure:

Component Details
Email Metadata Includes UID, Subject, From, To, and Date
Mailboxes Supports standard and custom folders (e.g., INBOX, Archive, Work)
Attachments Files are saved to a local directory specified during the download command
Configuration Environment variables define server hostnames, ports, and security protocols

IMAP/SMTP Email Management Skill Advanced Features

  • Support for multi-recipient emails including CC and BCC fields.
  • Rich HTML body support for professional email formatting.
  • Advanced search filters including date-based queries (since/before) and keyword matching.
  • Attachment handling for both incoming downloads and outgoing uploads.
  • Mailbox management capabilities for moving and archiving messages across folders.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*