Cloudflare Setup
Connect WPFlareMail to your Cloudflare account to use Cloudflare Email Routing for your WordPress site.
1. Enable Cloudflare Email Service
Before WPFlareMail can send emails, your domain must be connected to Cloudflare, and Email Service must be enabled.
- Log in to your Cloudflare Dashboard.
- Go to Build > Compute > Email Service > Email Sending and click Onboard Domain in the upper right.
- Choose "Zone" (your domain). Leave "subdomain" blank unless you want to send your emails from a subdomain (not likely). Then click Done.
Note: You must have a Cloudflare Workers Paid plan ($5/mo) to use the outbound email API. Free plans can only receive and forward emails.
2. Generate an API Token
WPFlareMail needs permission to send emails. You can do this securely using a scoped API token.
- Click on the My Profile icon in the top right corner and select API Tokens.
- Click the blue Create Token button.
- Scroll down and click Get started next to Create Custom Token.
- Name the token something recognizable, like
WPFlareMail Outbound. - Under Permissions, select:
Account>Email Sending>Edit
- Under Account Resources, select
Include>All accounts(or specify your account). - Continue to the summary and click Create Token.
Warning: Save Your Token!
Cloudflare will only show you this token once. Copy it immediately and paste it into a secure password manager or directly into the WPFlareMail settings page.
3. Find Your Account ID
You also need your Cloudflare Account ID. You can find this on the right side of the main dashboard overview page for your domain. It is an alphanumeric string (e.g., 023e105f4ecef8...).
4. Connect WordPress
Head back to your WordPress dashboard. Navigate to WPFlareMail > Settings and paste your Account ID, Sending Domain, and your API Token. Save your settings.
Use the "Send Test Email" tool to verify the connection. Next, set up SPF, DKIM, and DMARC.