Skip to content

akazwz/smail

Repository files navigation

English | 简体中文


SMail logo


Use cloudflare worker to quickly build a temporary email service

Smail 📨

  • 📁Use cloudflare email worker to receive emails
  • 🖼Provide web application
  • 💡Simplify the application, deploy it from the beginning, only need one worker

Quick Start

  • Click Smail to start
  • Follow the instructions below to build your service

Prerequisites

  • 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

Self-built

  • 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

Other features

  • Password protection: set PASSWORD in cf worker environment variables, access requires password

Credits

Star History

Star History Chart

Releases

No releases published

Packages

No packages published