QQ Mail API
使用自己的 QQ 邮箱授权码安全发送邮件。
登录或注册
创建 API Key
最近 30 天调用记录
| 时间 | 结果 | 收件人数 | 耗时 |
|---|
接口教程与规范
请求:POST /api/v1/mail/send;认证:Authorization: Bearer qma_...。
{
"to": ["recipient@example.com"],
"subject": "通知",
"text": "纯文本内容",
"html": "<p>可选 HTML</p>"
}成功返回 200 {"status":"sent"}。错误码:401 密钥无效、422 参数错误、429 频率过高(读取 Retry-After 后重试)、502 SMTP 发送失败、503 限流服务不可用。
Cloudflare Worker
await fetch('https://你的域名/api/v1/mail/send', { method: 'POST', headers: { Authorization: `Bearer ${env.MAIL_API_KEY}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ to: ['a@example.com'], subject: '通知', text: '内容' }) });同一 API Key 至少间隔 5 秒。系统仅记录结果、时间、耗时和收件人数,自动清理 30 天前记录;不会保存邮件正文、主题、HTML 和收件人地址。完整机器可读规范见 /docs。