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)