>
腾讯企业邮箱 IMAP/SMTP 客户端,通过 Python 脚本管理邮件。
$env:PYTHONIOENCODING=utf-8
python {baseDir}/scripts/email_client.py list [--folder INBOX] [--unread] [--limit 20] [--days 7]
python {baseDir}/scripts/emailclient.py read --id
python {baseDir}/scripts/email_client.py send --to a@b.com,c@d.com --subject 标题 --body 正文 [--cc e@f.com] [--html] [--attachment path1,path2]
python {baseDir}/scripts/emailclient.py reply --id
python {baseDir}/scripts/emailclient.py forward --id
python {baseDir}/scripts/emailclient.py mark --id
python {baseDir}/scripts/email_client.py search [--query 关键词] [--from sender@example.com] [--since 2026-03-01] [--before 2026-03-13] [--limit 20]
python {baseDir}/scripts/email_client.py folders
python {baseDir}/scripts/email_client.py stats
所有命令输出 JSON 格式,可直接解析。
安装后需要修改配置文件 {baseDir}/config/email-config.json,填入你自己的邮箱账号和密码:
json
{
imap: {
host: imap.exmail.qq.com,
port: 993,
ssl: true
},
smtp: {
host: smtp.exmail.qq.com,
port: 465,
ssl: true
},
account: {
username: 你的邮箱地址,
password: 你的邮箱密码或应用专用密码
}
}
常见邮箱服务商配置:
| 服务商 | IMAP Host | SMTP Host | IMAP Port | SMTP Port |
|---|---|---|---|---|
| 腾讯企业邮箱 | imap.exmail.qq.com | smtp.exmail.qq.com | 993 | 465 |
| QQ 邮箱 |
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 qq-email-manager-1776112449 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 qq-email-manager-1776112449 技能
skillhub install qq-email-manager-1776112449
文件大小: 8.23 KB | 发布时间: 2026-4-15 14:04