alepha@docs:~/docs/framework/packages/alepha/email$
cat cloudflare.md | pretty
1 min read
Last commit:

#Alepha - Email Cloudflare

#Installation

Part of the alepha package. Import from alepha/email/cloudflare.

npm install alepha

#Overview

Plugin for Alepha Email that sends through Cloudflare's Email Sending API via a Workers binding.

#API Reference

#Providers

#Environment Variables

Environment variables used to configure this module. These can be set in your .env file or through your deployment configuration.

Variable Type Default Description
CLOUDFLARE_ACCOUNT_ID text - Cloudflare account id. Only needed off Workers, where the REST API stands in for the SEND_EMAIL binding.
CLOUDFLARE_API_TOKEN text - Cloudflare API token with the Email Sending scope. Only needed off Workers, alongside CLOUDFLARE_ACCOUNT_ID.
EMAIL_FROM text - Default sender (a verified sender address). Accepts a bare address or an RFC 5322 display-name form, e.g. Lore <noreply@lore.alepha.dev>.