English | Indonesian
A serverless Cloudflare Email Worker that parses incoming emails, stores them in D1, and posts a human-readable .txt
summary to Discord via webhook.
On each incoming email:
- Worker parses MIME and extracts metadata (from, to, subject, date, body).
- Stores email to D1 storage.
- Create a summary
email.txt
like the example below and send it to Discord Webhook.
📤 From : [email protected]
📥 To : [email protected]
🔐 Key : ab12cd34
📅 Date : 4/24/2025, 3:15:07 PM
🧾 Subject : Hello World
🔗 Links :
- https://example.com
💌 Message :
This is the email body…
.vars
Environment Variable | Description |
---|---|
DISCORD_WEBHOOK_URL |
Discord webhook URL |
DASHBOARD_USER |
Dashboard username |
DASHBOARD_PASS |
Dashboard password |
wrangler.jsonc