Skip to main content

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​

  1. Sign in to the Cloudflare dashboard.
  2. Open the Email Service section for your account.
  3. Add and verify your sending domain.
  4. Add the DNS records Cloudflare asks for.

The full setup is described in the Cloudflare Email Service docs.

Step 2: Create an API token​

  1. Open My Profile > API Tokens.
  2. Create a custom token.
  3. Give it Email Sending: Edit permission for the account.
  4. 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​

  1. Open Settings > Email providers.
  2. Select Cloudflare Email.
  3. Paste the API token.
  4. Enter the account ID.
  5. 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​

ProblemWhat to check
401 UnauthorizedThe API token is wrong or expired.
403 ForbiddenThe token is missing Email Sending: Edit permission.
404 or account not foundThe account ID is wrong.
Test passes but no mail arrivesThe test did not send anything. Use Send test email.
Domain is rejectedThe sending domain is not verified in Cloudflare.

Next steps​