Handle incoming email and forward as HTTP request
npm installUpdate WEBHOOK_URL, EXTRA_HEADERS in wrangler.toml
or
wrangler secret put WEBHOOK_URL
wrangler secret put EXTRA_HEADERSnpm run deploy-
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. -
Register an email route
- Send an email to the email address you registered.
- Check the channel you registered the webhook to.