LaunchKit · 2026
Back to Skills

IMAP/SMTP mail client for OpenClaw agents.

2
272 downloads
by @romain-grosos

Setup & Installation

openclaw skills install @romain-grosos/mail-client

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install mail-client

Version History

v1.1.0Feb 25, 2026 - Version note by skill developer:

New: file attachment support (--attachment), SMTP_SSL (port 465), _retry.py (exponential backoff), setup --cleanup

What This Skill Does

IMAP/SMTP mail client for OpenClaw agents using Python stdlib with no external dependencies. Reads, searches, sends, moves, marks, and deletes messages on any standard mail server. Works with any provider that supports standard IMAP/SMTP, excluding OAuth-only providers.

Uses only Python stdlib with zero external dependencies, so it deploys in restricted environments without any package installation.

When to use it

  • Checking unread emails each morning
  • Searching for emails by sender, subject, or date
  • Sending automated alert emails from monitoring scripts
  • Moving messages to archive folders by matching criteria
  • Attaching files and reports to outbound emails

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Find all unread emails about invoices and move them to Archive/Invoices

AGENT
  1. 1Connects to IMAP server using stored credentials
  2. 2Searches for unread messages with 'invoice' in the subject
  3. 3Lists matching messages with UIDs, senders, and subjects
  4. 4Moves each matching message to the Archive/Invoices folder
OUTPUT

Confirmation that matching invoice emails were moved to Archive/Invoices

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

MAIL_USER environment variable (your email address)MAIL_APP_KEY environment variable (application password generated from your mail provider's account settings)MAIL_SMTP_HOST environment variableMAIL_IMAP_HOST environment variable