
內容簡介
總結:EdgeMail透過Cloudflare Worker端點轉發WordPress外寄郵件,而不使用預設的PHP郵件發送器。
### 問題與答案:
1. EdgeMail是如何處理WordPress外寄郵件的?
- EdgeMail截取WordPress外寄郵件(wp_mail),並透過你的Cloudflare Worker端點重新發送郵件,而不使用預設的PHP郵件發送器。
2. 這個外掛的主要特點有哪些?
- Cloudflare整合:使用Email Service API通過Cloudflare Worker發送郵件
- 安全回退:如果Worker失敗或外掛未配置,自動回退到預設WordPress郵件
- 電子郵件記錄:跟蹤所有嘗試發送的郵件,包括狀態、HTTP狀態碼和回應
- 簡單配置:具有Worker URL、API令牌和默認寄件人字段的簡單設置頁面
- 測試郵件:發送測試郵件以驗證配置
- WooCommerce狀態:在WooCommerce → 狀態中查看最近的郵件記錄和配置狀態
- 零停機時間:未配置的安裝程序仍然正常工作
3. 這個外掛與Cloudflare Email Service如何配合?
- 這個外掛設計用於與Cloudflare在2025年九月宣布的Email Service配合使用。您的Cloudflare Worker端點應該使用env.SEND_EMAIL.send()綁定來處理發送郵件。
4. 安裝這個外掛的步驟是什麼?
- 將外掛上傳到 /wp-content/plugins/ 目錄
- 通過WordPress中的“外掛”菜單啟用外掛
- 進入WordPress管理員中的工具 → EdgeMail
- 配置您的Worker URL、API令牌和默認寄件人字段
- 發送測試郵件以驗證配置
5. 這個外掛可能收集哪些數據?
- 郵件傳遞日誌 (收件人郵件地址、主題行、傳遞狀態、時間戳)將存儲在數據庫中,用於故障排除和合規目的
- Worker端點URL和API令牌將存儲在wp_options中,用於外掛功能
- 除了透過您配置的Cloudflare Worker端點進行的郵件投遞外,不會將用戶數據發送給第三方
6. 這個外掛的限制有哪些?
- 在v1中不支持附件
- 需要WordPress 5.7+ (使用pre_wp_mail過濾器)
外掛標籤
開發者團隊
原文外掛簡介
EdgeMail intercepts WordPress outbound email (wp_mail) and sends it via your Cloudflare Worker endpoint instead of using the default PHP mailer.
Features
Cloudflare Integration: Send emails through your Cloudflare Worker using the Email Service API
Safe Fallback: Automatically falls back to default WordPress email if Worker fails or plugin is not configured
Email Logging: Track all email attempts with status, HTTP codes, and responses
Easy Configuration: Simple settings page with Worker URL, API token, and default From fields
Test Email: Send test emails to verify your configuration
WooCommerce Status: View recent email logs and configuration status in WooCommerce → Status
Zero Downtime: Unconfigured installations continue to work normally
Cloudflare Email Service
This plugin is designed to work with Cloudflare’s Email Service, announced in September 2025. Your Cloudflare Worker endpoint should handle the email sending using the env.SEND_EMAIL.send() binding.
Installation
Upload the plugin to the /wp-content/plugins/ directory
Activate the plugin through the ‘Plugins’ menu in WordPress
Go to Tools → EdgeMail in the WordPress admin
Configure your Worker URL, API token, and default From fields
Send a test email to verify your configuration
Configuration
In the EdgeMail settings page, you’ll need to provide:
Worker URL: Your Cloudflare Worker endpoint (e.g., https://your-worker.your-subdomain.workers.dev)
API Token: Shared secret for authenticating with your Worker
Default From Name: Default sender name for emails
Default From Email: Default sender email (must be verified in Cloudflare Email Service)
Limitations
Attachments are not supported in v1
Requires WordPress 5.7+ (uses pre_wp_mail filter)
Privacy Policy
This plugin may collect the following data:
Email delivery logs (recipient email addresses, subject lines, delivery status, timestamps) are stored in the database for troubleshooting and compliance purposes
Worker endpoint URL and API token are stored in wp_options for plugin functionality
No user data is sent to third parties except for email delivery through your configured Cloudflare Worker endpoint
All data is stored locally on your WordPress installation. This plugin does not track users or send data to external analytics services.
