Overview
smail is the source code of smail.pw, a temporary email service that runs on Cloudflare Workers.
Features
- Get an address without signing up; it stays the same until you replace or delete it
- New mail appears within seconds, pushed over a WebSocket (no polling)
- All pages are static files; the Worker only handles the inbox API, the push connection and incoming mail
- Emails render in a sandboxed iframe — scripts don’t run and links open in a new tab
- 19 interface languages, including right-to-left ones
- Receive only: no sending, and attachments are not shown
Stack
Solid 2, StyleX, Cloudflare Workers, D1, R2, Durable Objects and Email Routing.
Self-hosting
To run your own copy you edit a single file, site.config.ts, then follow the deploy steps in the README; the final Email Routing step is done in the Cloudflare dashboard.