A simple, responsive email service built on Cloudflare, with email sending and attachment support 🎉
Main README (English) | English
With just one domain, you can create multiple email addresses, similar to major email platforms. Deploy this project to Cloudflare Workers to reduce server costs and run your own email service.
![]() |
![]() |
|---|---|
![]() |
![]() |
-
💰 Low-Cost Hosting: Deploy to Cloudflare Workers to reduce server costs
-
💻 Responsive Design: The layout automatically adapts to desktop and most mobile browsers
-
📧 Email Sending: Send email through Resend, with bulk sending, inline images, attachments, and delivery-status tracking
-
🛡️ Administration: Manage users and email, with role-based access control for features and resource limits
-
📦 Attachments: Send and receive attachments, using R2 object storage to save and download files
-
🔔 Email Forwarding: Forward received messages to Telegram bots or mailboxes hosted by other providers
-
📡 Open API: Create users in bulk and query email with multiple filters through the API
-
🔢 Verification Code Recognition: Automatically detect email verification codes with Workers AI
-
📈 Data Visualization: Visualize system data and user/email growth with ECharts
-
🎨 Personalization: Customize the site title, login background, and transparency
-
🤖 CAPTCHA: Use Turnstile verification to prevent automated bulk registration
-
📜 More Features: Under development...
-
Platform:Cloudflare Workers
-
Web Framework:Hono
-
ORM:Drizzle
-
Frontend Framework:Vue3
-
UI Framework:Element Plus
-
Email Service: Resend
-
Cache:Cloudflare KV
-
Database:Cloudflare D1
-
File Storage:Cloudflare R2
cloud-mail
├── mail-worker # Backend worker project
│ ├── src
│ │ ├── api # API layer
│ │ ├── const # Project constants
│ │ ├── dao # Data access layer
│ │ ├── email # Email processing and receiving
│ │ ├── entity # Database entities
│ │ ├── error # Custom exceptions
│ │ ├── hono # Web framework configuration, middleware, and global error handling
│ │ ├── i18n # Internationalization
│ │ ├── init # Database and cache initialization
│ │ ├── model # Response data models
│ │ ├── security # Authentication and authorization
│ │ ├── service # Business logic layer
│ │ ├── template # Message templates
│ │ ├── utils # Utility functions
│ │ └── index.js # Entry point
│ ├── pageckge.json # Project dependencies
│ └── wrangler.toml # Project configuration
│
├── mail-vue # Frontend Vue project
│ ├── src
│ │ ├── axios # Axios configuration
│ │ ├── components # Custom components
│ │ ├── echarts # ECharts integration
│ │ ├── i18n # Internationalization
│ │ ├── init # Startup initialization
│ │ ├── layout # Main layout components
│ │ ├── perm # Access control
│ │ ├── request # API requests
│ │ ├── router # Router configuration
│ │ ├── store # Global state management
│ │ ├── utils # Utility functions
│ │ ├── views # Page components
│ │ ├── app.vue # Root component
│ │ ├── main.js # Entry JavaScript file
│ │ └── style.css # Global CSS
│ ├── package.json # Project dependencies
└── └── env.release # Project configuration
This project is licensed under the MIT license.




