# Imap Smtp Email

Read and send email via IMAP/SMTP.

- Repository: https://github.com/netease-youdao/LobsterAI (6161 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-10-31
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add netease-youdao/LobsterAI --skill imap-smtp-email -g -a claude-code -y`
Codex: `npx skills add netease-youdao/LobsterAI --skill imap-smtp-email -g -a codex -y`
Cursor: `npx skills add netease-youdao/LobsterAI --skill imap-smtp-email -g -a cursor -y`
Gemini CLI: `npx skills add netease-youdao/LobsterAI --skill imap-smtp-email -g -a gemini-cli -y`

## Description

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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# IMAP/SMTP Email Tool

Read, search, and manage email via IMAP protocol. Send email via SMTP. Supports Gmail, Outlook, 163.com, vip.163.com, 126.com, vip.126.com, 188.com, vip.188.com, and any standard IMAP/SMTP server.

## Important: Configuration is Pre-configured

The `accounts.json` configuration file is automatically managed by LobsterAI Settings (邮箱设置). Legacy `.env` configuration is still supported as a fallback for older users. **Do NOT ask the user to create or edit these files, just run the commands directly.** If credentials are wrong, the scripts will return a clear error message; only then should you inform the user to check their email settings.

The configuration files are located in this skill's directory (same folder as this SKILL.md file). The scripts load them automatically via absolute paths, regardless of the current working directory.

Use the provided scripts as the only email transport interface. Do not write temporary IMAP/SMTP scripts, do not use raw sockets, OpenSSL, `net`, `tls`, or alternate mail clients, and do not inspect `.env`, `accounts.json`, or script source unless the official command output explicitly reports missing configuration and the user asks you to diagnose it. If an official command fails or times out, report that command result and suggest checking LobsterAI Settings; do not implement a fallback protocol client.

Do not claim that `node-imap`, `nodemailer`, or another dependency is broken unless an official script or verified stack trace proves it. A successful command means the configured email account works; a timeout means the current command timed out, not that the dependency is defective.

The rest: https://github.com/netease-youdao/LobsterAI/blob/HEAD/SKILLs/imap-smtp-email/SKILL.md
