English | 简体中文
Use cloudflare worker to quickly build a temporary email service
- 📁Use cloudflare email worker to receive emails
- 🖼Provide web application
- 💡Simplify the application, deploy it from the beginning, only need one worker
- Click Smail to start
- Follow the instructions below to build your service
- cloudflare account
- Domain name in cloudflare and enable email routing function (enable in domain email settings)
- Create KV and D1 databases in Workers and Pages
- star this repository (not necessary, lmao, but thank you for the star)
- clone the repository, modify the KV id and D1 database id in wrangler.toml to your own
- Migrate the database, run pnpm wrangler d1 migrations apply smail --remote
- Deploy the worker, run pnpm run deploy
- Add environment variables, enter worker settings->variables and secrets: set COOKIE_SECRET: key for encrypting cookies, DOMAIN: your domain name
- Enter domain management->email->routing rules->Catch-all address. Here choose to send to the worker, and then select the created worker
finished: visit your worker, you can customize the domain name for the worker as needed. If the project is updated later, you can synchronize it in your forked repository, and it will be automatically deployed
- Password protection: set PASSWORD in cf worker environment variables, access requires password