2023-08-23 19:15:15 +08:00
2023-08-16 18:11:05 +08:00
2023-08-16 18:11:05 +08:00
2023-08-21 21:42:26 +08:00
2023-08-16 18:11:05 +08:00
2023-08-16 11:13:26 +08:00
2023-08-21 19:11:38 +08:00
2023-08-16 11:14:57 +08:00
2023-08-23 19:15:15 +08:00

cloudflare_temp_email

This is a temporary email service that uses Cloudflare Workers to create a temporary email address and view the received email in web browser.

Live Demo

Deploy

Install/Update Wrangler

DB - Cloudflare D1

# create a database, and copy the output to wrangler.toml in the next step
wrangler d1 create dev
wrangler d1 execute dev --file=db/schema.sql

d1

Backend - Cloudflare workers

cd worker
npm install
# copy wrangler.toml.template to wrangler.toml and modify it
cp worker/wrangler.toml.template worker/wrangler.toml
# deploy
wrangler deploy

you can find and test the api url in the workers dashboard

worker

config email forward

email

Frontend - Cloudflare pages

cd frontend
pnpm install
# add .env.local and modify VITE_API_BASE to your api url
cp .env.example .env.local
pnpm build --emptyOutDir
cd ..
wrangler pages deploy dist --branch production

pages

Description
CloudFlare free temp domain email 免费收发 临时域名邮箱 支持附件 IMAP SMTP TelegramBot
Readme MIT 23 MiB
Languages
TypeScript 45.7%
Vue 44.8%
Python 4.7%
JavaScript 3.9%
Rust 0.6%
Other 0.3%