Tooluck logoTooluck
SKILL.md

imap-smtp-email

Agent skill fromfreestylefly/wesight

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.

How to install imap-smtp-email

install imap-smtp-email
# install the wesight pack with the skills CLI
npx skills add freestylefly/wesight

# or add only this skill to Claude Code: copy the folder

SKILLs/imap-smtp-email/

# into

~/.claude/skills/imap-smtp-email/ (all projects)

.claude/skills/imap-smtp-email/ (one project)

SKILLs/imap-smtp-email/SKILL.md

MITFull file
1# IMAP/SMTP Email Tool
2
3Read, 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.
4
5## Important: Configuration is Pre-configured
6
7The `.env` configuration file is automatically managed by WeSight Settings (邮箱设置). **Do NOT ask the user to create or edit `.env` — 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.
8
9The `.env` file is located in this skill's directory (same folder as this SKILL.md file). The scripts load it automatically via an absolute path, regardless of the current working directory.
10
11## Configuration Reference
12
13Create `.env` in the skill folder or set environment variables:
14
15```bash
16# IMAP Configuration (receiving email)
17IMAP_HOST=imap.gmail.com # Server hostname
18IMAP_PORT=993 # Server port
19IMAP_USER=your@email.com
20IMAP_PASS=your_password
21IMAP_TLS=true # Use TLS/SSL connection
22IMAP_REJECT_UNAUTHORIZED=true # Set to false for self-signed certs
23IMAP_MAILBOX=INBOX # Default mailbox
24
25# SMTP Configuration (sending email)
26SMTP_HOST=smtp.gmail.com # SMTP server hostname
27SMTP_PORT=587 # SMTP port (587 for STARTTLS, 465 for SSL)
28SMTP_SECURE=false # true for SSL (465), false for STARTTLS (587)
29…

Excerpt shown under the repository's MIT license.

More skills in wesight

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates