imap-smtp-email

Read and manage emails via IMAP and SMTP with node scripts.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/okbest2024/openclaw-backup --skill imap-smtp-email-okbest2024
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imap-smtp-email
Source: https://github.com/okbest2024/openclaw-backup/tree/main/workspace/skills/imap-smtp-email
Command: npx skills add https://github.com/okbest2024/openclaw-backup --skill imap-smtp-email-okbest2024

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dotenv, imap, imap-simple, mailparser, nodemailer, and includes scripts (resource) components.

What problem does it solve?

Read and manage emails automatically via IMAP/SMTP, eliminating manual mailbox checks and repetitive tasks.

Core Features & Use Cases

  • Read, search, and manage emails via IMAP; send emails via SMTP. Supports Gmail, Outlook, 163.com, vip.163.com, 126.com, vip.126.com, 188.com, vip.188.com.
  • Use cases include monitoring inboxes for new messages, fetching content, downloading attachments, searching by sender/subject, and replying with crafted emails.

Quick Start

Configure your environment and run the IMAP/SMTP email skill to check for new messages.

Frequently Asked Questions about imap-smtp-email

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate reading and sending emails via IMAP and SMTP in Node.js?

Automating IMAP and SMTP email tasks involves running Node.js scripts that connect to mail servers using configured environment variables for authentication. This enables automated inbox monitoring, content parsing, and message retrieval.

Can I use this IMAP automation to fetch attachments and search emails by sender?

Yes, IMAP automation allows you to search emails by sender or subject, fetch message content, and download attachments automatically. It supports flexible retrieval tasks across multiple providers including Gmail and Outlook.

Does this Node.js email script support providers like Gmail, Outlook, and 163.com?

Yes, the Node.js email script supports multiple providers including Gmail, Outlook, 163.com, vip.163.com, 126.com, vip.126.com, 188.com, and vip.188.com. This allows flexible automation across various international and Chinese mail services.

What environment variables do I need to configure for SMTP and IMAP email automation?

You need to configure six environment variables: IMAP_HOST, IMAP_USER, IMAP_PASS, SMTP_HOST, SMTP_USER, and SMTP_PASS. These credentials authenticate your connection to the respective mail servers for automated retrieval and sending.

What is the best way to monitor an inbox for new messages and reply automatically?

The best way to monitor inboxes for new messages and reply automatically is by combining IMAP for fetching incoming content and SMTP for sending crafted responses. This eliminates manual mailbox checks and repetitive tasks.