Email worker Β· GitHub license codecov PRs Welcome
Send emails to Cloudflare and forward them to different channels using an email worker.
- Cloudflare account (free)
- Volta installed (for managing correct Node and Yarn versions)
- Wrangler installed globally
yarn install
yarn deploy
- Right-click on a Discord channel then click
Edit Channel, thenIntegrations. - Create a webhook, then copy the URL.
- Add this url to your secrets:
wrangler secret put DISCORD_WEBHOOK_URL
You should see something like this
π Creating the secret for the Worker "email-worker" β¨ Success! Uploaded secret DISCORD_WEBHOOK_URL
- Go to your zone's Email Workers settings.
- Click the zone (e.g.
example.com), thenEmail,Email Routing. - On the
Email Workerstab, register an email route.
- Send an email to the email address you registered.
- Check the channel you registered the webhook to.
- Change the
namefield inwrangler.tomlto deploy a separate worker with a separate secret (e.g. with a separate webhook for a test channel).
This package is MIT licensed.