Configure Cloudflare Email Sending For Site Emails

Updated December 1, 2026 · 9 min read

Summarize with:
Share:

Cloudflare Email Sending sends transactional email, such as password resets and order receipts, from a domain in your Cloudflare account. You can add it to xCloud as a built-in email provider. xCloud then sets it up in the FluentSMTP plugin on your WordPress site, and you can check FluentSMTP and send a test email from the xCloud panel.

This guide covers WordPress sites. For how site emails work on xCloud in general, see Setting Up Site Emails For WordPress On xCloud.

Before You Start

You need three things in Cloudflare:

  • Your domain in Cloudflare. Cloudflare only sends mail from a domain in the same Cloudflare account as your API token.
  • The domain set up for Email Sending. Every From Email you use on a site must belong to a domain that is set up for Email Sending. You can set it up in Cloudflare by following Cloudflare’s setup guide, or from xCloud in Step 3.
  • A Workers Paid plan, if the site emails anyone outside your own verified addresses. See the plan limits below.

Workers Free And Workers Paid

Your Cloudflare plan decides who your site can email:

Cloudflare plan Who the site can email
Workers Free Only destination addresses that you verified in your Cloudflare account. Cloudflare refuses every other recipient.
Workers Paid Any recipient.

A WordPress site emails customers, new users and form senders, so a live site needs Workers Paid. Workers Free is enough to try the setup with your own inbox.

To verify a destination address on Workers Free:

  1. In the Cloudflare dashboard, select your account and go to Compute → Email Service → Email Routing → Destination Addresses.
  2. Enter the email address under Destination addresses and submit it.
  3. Open the email Cloudflare sends to that address and select Verify email address.

To send to everyone, upgrade the account to Workers Paid in Cloudflare. At the time of writing, Workers Paid includes 3,000 outbound emails per month, then $0.35 per 1,000 emails, and emails to verified destination addresses are free. Check Cloudflare’s pricing page for current prices. New Cloudflare accounts start with a low daily sending limit that Cloudflare raises over time.

Step 1: Add Cloudflare As An Email Provider

From your xCloud dashboard, open Settings → Integrations → Email Provider and click the ‘Add New Provider’ button.

Click ‘Add New Provider’ in the List of Email Providers

Select Cloudflare, then click ‘Create Cloudflare token’. Cloudflare opens in a new tab with only the Email Sending: Edit permission selected and a token name filled in. Choose your account, create the token and copy it.

Click ‘Create Cloudflare token’ after selecting Cloudflare in the Add Provider form

To create the token by hand instead, open Manage Account → API Tokens in Cloudflare and select Create Token. Name the token, start from scratch instead of a template, add the Email Sending: Edit permission for your account, then select Continue to summary and Create Token. Cloudflare shows the token only once, so copy it before you leave the page.

Back in xCloud, paste the token into Cloudflare API Token, give the provider a Label and click ‘Add Provider’. The provider then appears in the list with the username api_token and the status Active.

You do not need to enter a host, port or username. xCloud sends through smtp.mx.cloudflare.net on port 465, with the username api_token and your token as the password.

Use a token with only the Email Sending permission. xCloud saves this token on each site that uses the provider, so anyone who can read the site’s files can read it. A sending-only token cannot change your DNS records or other Cloudflare settings. Do not paste the token of your Cloudflare DNS integration here.

To replace the token later, edit the provider and paste a new one. Leave the field blank to keep the saved token.

If your team has a Cloudflare integration, the form also shows Cloudflare Integration (optional). Select the integration to check and set up a site’s sending domain from the site’s Mail Delivery page (Step 3). Leave it on No integration if you set up sending domains in Cloudflare yourself.

The integration’s token is not saved on your sites. For this feature, that token needs the Account → Email Sending → Edit permission as well. Click ‘The integration’s token needs Email Sending for this: update it’ under the field to open the integration form with the right choice selected.

Step 2: Add Cloudflare To Your Site

Open your site and go to Email Config → Mail Delivery. Under Email provider, click your Cloudflare provider. Enter a From Name and a From Email on a domain that is set up for Email Sending in Cloudflare, then click ‘Save Changes’. The Suggestions below the fields fill in a common address on your site’s domain in one click.

Select the Cloudflare provider under ‘Email provider’ in Email Config → Mail Delivery

xCloud installs and activates the FluentSMTP plugin if needed, and saves the Cloudflare connection in it. The top of the page then reads “This site is set up to send email through” followed by your provider’s label, with a Set up badge. The provider’s token is stored in the site’s wp-config.php file, not in the WordPress database.

Step 3: Check The Sending Domain

This step applies when you linked a Cloudflare integration in Step 1. A Cloudflare Sending Domain section then appears below the provider and checks the domain of your From Email in Cloudflare. Click ‘Check Again’ to repeat the check.

What the section says What to do
The domain is set up for Email Sending in Cloudflare. Nothing. Continue with Step 4. You can open the list of DNS records Cloudflare added.
The domain is in your connected Cloudflare account but is not set up for Email Sending yet. Click ‘Set Up Sending Domain’. Cloudflare adds the mail records to the domain itself.
The Cloudflare account this provider sends with does not have the domain. Use a From Email on a domain in that Cloudflare account, or add the domain to that account.
The sending domain must be this site’s domain or a parent of it. The From Email is on a different domain than the site. xCloud can only check and set up the site’s own domain here. Set up the other domain in Cloudflare yourself.

If the domain has no DMARC record, Cloudflare adds one that tells receivers to reject mail that fails the check. If you also send mail for this domain from another service, add your own DMARC record first.

Without a linked integration, this section does not appear. Set up the sending domain in Cloudflare, then go to Step 4.

Step 4: Send A Test Email

Scroll down to Test delivery. Under Send a test email, enter the address that should receive it and click ‘Send Test Email’. FluentSMTP sends the email through Cloudflare from your saved From Email. On the Workers Free plan, send the test to a destination address you verified in Cloudflare.

Enter an address under ‘Send a test email’ and click ‘Send Test Email’

When Cloudflare accepts the email, a green message confirms it was sent. Check the inbox and the spam folder. If the email is refused, the message is red and shows the reason; see the troubleshooting below.

Step 5: Check FluentSMTP From xCloud

In the same section, click ‘Check FluentSMTP’ under FluentSMTP on this site.

Click ‘Check FluentSMTP’ to see the connection status and email counts

xCloud reads FluentSMTP’s own report from your site and shows:

  • Each connection with its From address and either Settings OK or Needs attention. If FluentSMTP finds a problem, its reason appears below the connection.
  • Sent and Failed: how many emails FluentSMTP has logged on this site.
  • The FluentSMTP version installed on the site.

This check confirms that the saved settings are complete. It does not log in to Cloudflare, so send a test email to confirm that Cloudflare accepts your mail.

Troubleshooting

The provider shows “Needs an API token”

On the site’s Mail Delivery page, a Cloudflare provider with the Needs an API token badge cannot be selected. This happens to a provider that was added before it had its own token. Open Settings → Integrations → Email Provider, edit the provider, paste a token into Cloudflare API Token and save. Then select the provider on the site again.

The Cloudflare account does not have the domain

The Cloudflare Sending Domain section when the domain is not in the linked Cloudflare account

The linked integration belongs to a Cloudflare account that does not hold the domain of your From Email. Cloudflare only sends mail from a domain in the same account. Change the From Email, or add the domain to that Cloudflare account, then click ‘Check Again’.

The test email is not sent

Read the reason in the red message. The usual causes are:

  • The From Email is not on a domain set up for Email Sending in Cloudflare. Complete Step 3, or set the domain up in Cloudflare.
  • The token lacks the Email Sending: Edit permission, was deleted in Cloudflare, or belongs to a different Cloudflare account than the domain. Create a new token with the button in Step 1 and save it on the provider.
  • The message contains 550 5.7.1. Your Cloudflare account is on Workers Free and the recipient is not a verified destination address. Verify the address in Cloudflare or upgrade to Workers Paid, as described in Workers Free And Workers Paid.
  • Your server cannot open outgoing connections on port 465. Ask your server provider to allow outgoing connections on port 465.

After you fix the cause, click ‘Save Changes’, then send the test email again.

A connection shows Needs attention

FluentSMTP is missing part of its settings, often because the site’s wp-config.php was edited or replaced. Click ‘Save Changes’ under Provider and sender to write the Cloudflare settings to FluentSMTP again, then click ‘Check FluentSMTP’.

Frequently asked questions

Which Cloudflare API token do I use for Cloudflare Email Sending in xCloud?

Use a token that has only the Account, Email Sending, Edit permission. The Create Cloudflare token button in xCloud opens Cloudflare with that permission already selected. Do not reuse the token of your Cloudflare DNS integration.

Do I need a Cloudflare integration in xCloud to send email through Cloudflare?

No. The email provider sends with its own API token. Linking a Cloudflare integration is optional: it lets you check and set up a site’s sending domain from the site’s Mail Delivery page.

Where is the Cloudflare API token stored on my site?

xCloud saves the email provider’s token in the wp-config.php file of each site that uses the provider, not in the WordPress database. The token of a linked Cloudflare integration is never saved on your sites.

Can I use Cloudflare Email Sending on the Workers Free plan?

Yes, but only to test. On Workers Free, Cloudflare sends only to destination addresses that you verified in your Cloudflare account and refuses every other recipient. To email your customers, upgrade the Cloudflare account to Workers Paid.

If you run into any issues while setting up Cloudflare Email Sending, feel free to reach out to our support team.