Agent skill · writing content · aiskillstore
Email operations skill for sending, fetching, and reading emails via IMAP/SMTP. Uses curl with OpenSSL/LibreSSL for reliable TLS compatibility with Tencent Enterprise Mail and other providers. Credentials are securely stored in macOS Keychain.
Why this skill is useful
Adds 3 executable scripts for sending, fetching, and reading emails via IMAP/SMTP that are not commonly found in public documentation.
What it needs
Requires curl installed locally. Requires tencent-enterprise-mail account access. About 4k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Email Operations Skill Overview This skill provides email capabilities through direct IMAP/SMTP protocol access using curl. It supports: Sending emails via SMTP with TLS Fetching email lists via IMAP Reading email content by ID Multi-account support with secure credential storage Architecture Protocol: Direct IMAP (port 993) and SMTP (port 465) over TLS Security: Passwords stored in macOS Keychain, never in config files Compatibility: Uses curl with OpenSSL/LibreSSL (better Tencent Enterprise Mail support than rustls) Configuration: YAML-based account management in references/accounts.yaml Available Scripts 1. Send Email (send-email.sh) Send emails via SMTP with support for inline or file-based content. Usage: Parameters: -a ACCOUNT - Account name (default: from accounts.yaml) -t EMAIL - Recipient email (required) -c EMAIL - CC recipient (optional) -s TEXT - Email subject (required) -b TEXT - Email body inline (required if no -f) -f FILE - Email body from file (required if no -b) 2. Fetch Emails (fetch-emails.sh) Retrieve email headers from a mailbox. Usage: Parameters: -a ACCOUNT - Account name (default: from accounts.yaml) -m FOLDER - Mailbox folder (default: INBOX) -n N - Number of emails to fetch (default: 10) 3. Read Email (read-email.sh) Read full content of a specific email by ID. Usage: Parameters: -a ACCOUNT - Account name (default: from accounts.yaml) -m FOLDER - Mailbox folder (default: INBOX) -p PART - Part to retrieve: HEADER, BODY, or TEXT (default: TEXT) EMAILID - Email ID (required, positional argument) Configuration Account Setup Edit references/accounts.yaml to add email accounts: Password Management Passwords are stored in macOS Keychain. Set them using: Keychain service naming convention: IMAP: email-imap-{accountnamelowercase} SMTP: email-smtp-{accountnamelowercase} Common Use Cases 1. Send a Quick Email When user says: "Send an email to alice@example.com about the meeting" 2. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/email