How to Configure Cloudflare Email for WordPress
Cloudflare Email Sending handles outbound mail through an API. It is separate from Cloudflare Email Routing, which forwards incoming mail to your inbox.
To use the sending API, enable Email Sending, verify a sending domain, and create an API token. You will also need your Cloudflare account ID.
Before you begin
- A Cloudflare account.
- Email Sending enabled for your account.
- A sending domain set up in Cloudflare.
- An API token with Email Sending permission.
- Your Cloudflare account ID.
Step 1: Set up the sending domain
- Sign in to the Cloudflare dashboard.
- Open the Email Service section for your account.
- Add and verify your sending domain.
- Add the DNS records Cloudflare asks for.
The full setup is described in the Cloudflare Email Service docs.
Step 2: Create an API token
- Open My Profile > API Tokens.
- Create a custom token.
- Give it Email Sending: Edit permission for the account.
- Copy the token.
Step 3: Find the account ID
Open your account home page in the Cloudflare dashboard. The account ID is shown there. You can also copy it from the URL of an account page.
Step 4: Enter the details in LetterPress
- Open Settings > Email providers.
- Select Cloudflare Email.
- Paste the API token.
- Enter the account ID.
- Save changes. Set this provider as default if the button is shown. Then click Test connection.
The connection test only confirms the credentials are saved. Use Send test email to prove delivery.
Step 5: Set the sender and test
Open Settings > Sender identity and set From email to an address on the verified domain.
Click Send test email. Then send a test email from Settings > Sender identity.
Common problems
| Problem | What to check |
|---|---|
401 Unauthorized | The API token is wrong or expired. |
403 Forbidden | The token is missing Email Sending: Edit permission. |
404 or account not found | The account ID is wrong. |
| Test passes but no mail arrives | The test did not send anything. Use Send test email. |
| Domain is rejected | The sending domain is not verified in Cloudflare. |
Next steps
- Review email authentication.
- Fix delivery problems with Emails not sending.
- Moving from another plugin? Read SMTP migration.