Skip to content

Lightweight tool to process emails directly from Cloudflare

License

Notifications You must be signed in to change notification settings

hbmartin/cloudflare-email-worker-sqlite

 
 

Repository files navigation

Cloudflare email worker to SQLite D1

GitHub license Checked with Biome Lint and Test

Send emails to Cloudflare and store them in SQLite (D1).

Setup

Prerequisites

Install dependencies

yarn install

Deploy the worker

wrangler publish

Set up a route

  • Go to your zone's Email Workers settings.
  • Click the zone (e.g. example.com), then Email, Email Routing.
  • On the Email Workers tab, register an email route.

Register an email route

Verify

  • Send an email to the email address you registered.
  • Check the channel you registered the webhook to.

Tips

  • Change the name field in wrangler.toml to deploy a separate worker with a separate secret (e.g. with a separate webhook for a test channel).

License

This package is MIT licensed.

About

Lightweight tool to process emails directly from Cloudflare

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.2%
  • JavaScript 2.8%