快速开始
1. 连接 Cloudflare
Section titled “1. 连接 Cloudflare”在 CFsend 控制台授权目标 Cloudflare 账户。CFsend 只申请部署和管理 Send Runtime 所需的权限。
2. 部署 Runtime
Section titled “2. 部署 Runtime”在 Runtimes 中选择账户并部署。安装程序会在该账户中配置 Worker、D1、R2、Queues、Durable Objects 和密钥;不会创建共享发信端点。
3. 验证发信域名
Section titled “3. 验证发信域名”添加域名后,按控制台提示完成 Email Sending 授权、SPF、DKIM 和 DMARC。状态全部通过后再用于生产发送。
4. 创建 API 密钥
Section titled “4. 创建 API 密钥”创建作用域最小的 Runtime 密钥,并仅保存在服务端:
export ALL2CF_SEND_URL="https://your-runtime.workers.dev"export ALL2CF_SEND_KEY="your-runtime-key"5. 发送并查看事件
Section titled “5. 发送并查看事件”调用 POST /emails,然后在 Logs 和 Webhooks 中确认投递、退信或投诉事件。Cloudflare Workers Free 计划只能发送到已验证地址;任意收件人需要 Workers Paid。