Product Docs Pricing Changelog
Start free Sign in
Docs / Guides / Email

Configure email

Open the Email panel on your project. Pick Cloudflare Email Sending or Resend, paste the from-address (and the Resend API key if applicable). The auth Worker picks it up within a second — password reset, magic links, and verification all become live.

Email is a prerequisite for password reset, email verification, and magic-link sign-in. Until it's configured, those flows throw a clear "set up email first" error. Your Resend API key lives only in your project's flarelink_config on your own D1 — Flarelink stores zero email secrets.
  • Resend — fastest to set up: verify a domain in Resend, paste an API key and a from-address. Good free tier.
  • Cloudflare Email Sending — native env.EMAIL.send(); needs a verified outbound domain on your CF account (the MX/SPF/DKIM setup).
  • Use the send test form to fire a real message and confirm rendering in Gmail / Outlook / Apple Mail before going live.

Editing email templates

Flarelink ships sensible defaults for the three email-driven flows (password reset, email verification, magic link). Customize any of them from your project's Authentication → Email panel.

  • Three rows, one per template type: password reset · email verification · magic link. Click edit on any row.
  • The editor is side-by-side — subject + HTML + plain-text on the left, a live preview iframe on the right. What you see is what your users will see (the iframe runs the same substitution the Worker does).
  • Subject, HTML, and plain-text overrides save independently — leave a field blank to keep the default.
  • Available placeholders: {{url}} (the reset / verify / sign-in link) and {{appName}} (derived from your first trusted origin's hostname).
  • Revert to default in the editor restores the bundled template (not saved until you click Save — recoverable mid-edit).

Overrides live in your project's flarelink_config on your own D1 — Flarelink stores zero email content. The Worker picks up changes within a second.

Something unclear or missing? [email protected] llms-full.txt ↗