qqexmail

Send and receive Tencent Enterprise Mail messages via IMAP and SMTP.

2.5k|134|Updated Jun 6, 2025
One-click install
npx skills add https://github.com/UnicomAI/wanwu --skill qqexmail
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: qqexmail
Source: https://github.com/UnicomAI/wanwu/tree/main/configs/microservice/bff-service/configs/agent-skills/clawhub/qqexmail
Command: npx skills add https://github.com/UnicomAI/wanwu --skill qqexmail

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Managing a Tencent Enterprise Mail (exmail.qq.com) inbox from the command line or an agent workflow normally requires manual webmail access; this Skill lets you send emails, list recent inbox messages, and fetch full message bodies programmatically using IMAP/SMTP with credentials read from environment variables.

Core Features & Use Cases

  • Send Email: Deliver messages through smtp.exmail.qq.com (port 465, SSL) using nodemailer, with recipient, subject, and body passed as CLI arguments or via stdin.
  • List Recent Mail: Connect to imap.exmail.qq.com (port 993, SSL) to retrieve the latest N messages or messages from the last N days, showing subject, sender, date, UID, and a body preview.
  • Fetch Full Body by UID: Retrieve the complete plain-text body of a specific message using the UID from the inbox listing.
  • Use Case: An agent needs to notify a colleague and later check replies; it runs the send script to dispatch the message, then lists recent inbox mail and pulls the full body of the reply by UID.

Quick Start

Set the EXMAIL_ACCOUNT and EXMAIL_AUTH_CODE environment variables, run npm install in the skill directory, then ask the agent to send an email to a recipient with a subject and body using the Tencent Enterprise Mail skill.

Frequently Asked Questions about qqexmail

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

FAQPage Schema
How do I send email from Tencent Enterprise Mail with Node.js?

Use the send.js script with nodemailer configured for smtp.exmail.qq.com on port 465 with SSL. Pass recipient, subject, and body as CLI arguments, or pipe the body via stdin with the --stdin flag.

How to read recent emails from exmail.qq.com via IMAP?

Run the receive.js script, which connects to imap.exmail.qq.com on port 993 using the imap and mailparser packages. It lists the latest 10 messages by default, or use --limit N for a count or --days N for a time window.

What credentials does Tencent Enterprise Mail IMAP/SMTP require?

It requires the full mailbox address in EXMAIL_ACCOUNT and an authorization code in EXMAIL_AUTH_CODE, generated under Settings then Account Security in exmail.qq.com. The authorization code is not the mailbox login password and must never be committed to a repository.

How do I get the full body of a specific email by UID?

Run get-body.js with the --uid flag using a UID from the receive.js output. It fetches the complete plain-text body from the INBOX, stripping HTML tags if only an HTML part exists.

Why does the UID from the inbox listing stop working?

UIDs are bound to the INBOX folder and can become invalid if the message is moved or deleted. Re-run receive.js to obtain fresh UIDs before fetching message bodies.