Loading...
Loading...
IMAP email receiving and SMTP email sending for QQ Mail; the account and authorization code are read from environment variables QQ_EMAIL_ACCOUNT and QQ_EMAIL_AUTH_CODE. Use this when users need to send, receive, check, forward QQ emails or configure QQ Mail.
npx skill4agent add shadowcz007/skills qq-email| Variable | Description |
|---|---|
| QQ_EMAIL_ACCOUNT | QQ Mail account (full address, e.g., xxx@qq.com) |
| QQ_EMAIL_AUTH_CODE | QQ Mail authorization code (generated after enabling IMAP/SMTP in QQ Mail's "Settings → Accounts"; not the QQ login password; do not commit to repositories) |
echoimap.qq.comsmtp.qq.com| Script | Function |
|---|---|
| Reads credentials from environment variables, uses nodemailer to connect to QQ Mail SMTP to send emails; supports recipient, subject, and body (CLI parameters). |
| Reads credentials from environment variables, uses imap + mailparser to connect to QQ Mail IMAP to receive emails; supports "latest N messages" or "latest N days", outputs subject, sender, date, UID, and body summary. |
| Retrieves the full body of a specified email (plain text, no summary truncation) by UID. Must pass the |
npm installnode scripts/send.js <recipient> <subject> <body>--stdinnode scripts/send.js "recipient@example.com" "Test Subject" "Email body content"# Receive the latest 10 messages (default)
node scripts/receive.js
# Receive the latest N messages
node scripts/receive.js --limit 20
# Receive emails from the latest N days (e.g., 7, 30, 90)
node scripts/receive.js --days 7get-body.jsnode scripts/get-body.js --uid 12345--uidQQ_EMAIL_ACCOUNTQQ_EMAIL_AUTH_CODE--days 7--days 30--days 90openBoxopenBox('My Folder', ...)QQ_EMAIL_ACCOUNTQQ_EMAIL_AUTH_CODE.env