EdgeMail

外掛說明

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

  1. Upload the plugin to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Tools EdgeMail in the WordPress admin
  4. Configure your Worker URL, API token, and default From fields
  5. 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.

螢幕擷圖

  • Settings page under Tools menu
  • WooCommerce Status integration

常見問題集

What happens if my Worker is down?

EdgeMail automatically falls back to the default WordPress email sending mechanism. Your site will continue to send emails normally.

Can I use this without WooCommerce?

Yes! EdgeMail works on any WordPress installation. The settings page appears under Tools in the WordPress admin.

Do I need to create my own Cloudflare Worker?

Yes, you’ll need to create a Cloudflare Worker that receives the email payload and uses the Email Service API to send emails. See Cloudflare documentation for details.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈EdgeMail〉的開發相關工作。

參與者

將〈EdgeMail〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial release
  • Email interception via pre_wp_mail filter
  • Cloudflare Worker integration
  • Settings page with test email functionality
  • Database logging
  • WooCommerce Status integration