Skip to content

WordPress Cloudflare Email

Routes all WordPress email through the Cloudflare Email Sending API and keeps a searchable log of every message, with no settings screen.

WordPressActiveMIT
View on GitHub (opens in a new tab)
Platform

WordPress

License
MIT
Status
Active
Part of

Cloudflare Email

WordPress sends password resets, order receipts, and form notifications through PHP's mail function by default, which often lands in spam or never arrives. This plugin sends every message through Cloudflare Email Sending instead, so mail goes out from a verified domain with deliverability records managed in Cloudflare. It's the WordPress adapter in Avunu's Cloudflare Email suite, and it handles outbound mail only.

Features

  • Drop-in. Hooks wp_mail() without redefining it, so every plugin and theme that sends mail is covered automatically.

  • Faithful messages. Cc, Bcc, Reply-To, custom headers, and inline images are preserved.

  • Logged. Every send and every failure is recorded. Open Tools → Cloudflare Email to view, resend, or delete messages, with automatic pruning after a retention window you choose.

  • No silent fallback. If Cloudflare rejects a message, it's logged as failed and wp_mail() returns false. A filter lets you adjust the payload.

  • Quiet when unconfigured. Without credentials it does nothing, and WordPress mail works as before.

  • Self-updating from GitHub Releases.

Getting started

You need a Cloudflare account with Email Sending enabled for your domain and an API token. Add the account ID, token, and From address to wp-config.php, then verify with WP-CLI:

wp cloudflare-email verify              # check the API token
wp cloudflare-email send-test you@example.com

The README lists every constant.

Related projects

All open-source projects

A multi-tenant Cloudflare Email Routing Worker that stores every inbound message and pushes it to the right Odoo or Frappe instance with durable retries.

Odoo 18 modules that send and receive email through Cloudflare and run two-way Twilio SMS and MMS conversations inside Discuss.

AGPL-3.0-or-laterGitHub

Need help with it?

Need this implemented? Our Websites team can set up reliable email for your site.