Skip to content
forked from akazwz/smail

Temporary email service 临时邮箱

Notifications You must be signed in to change notification settings

snake-git/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

About

Temporary email service 临时邮箱

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 90.0%
  • CSS 5.0%
  • JavaScript 5.0%