Protect your privacy with instant disposable email addresses
Important
ALL CODE FOR THIS WEBSITE IS COPYRIGHTED. YOU CANNOT USE THESE CODES AND OPEN ANOTHER WEBSITE IN THE SAME WAY. IT IS BEING TRACKED WITH VARIOUS TOOLS AND IF IT IS OPENED, A DMCA VIOLATION WILL BE SENT WITH MY LAWYER. SCANS ARE CARRIED OUT REGULARLY WITH VARIOUS TOOLS.
PLEASE READ THE LICENSE
I had 330+ stars and 25.000+ visitors on this project before, but for some reason I had to make the repo private. As of April 23, 2025, I made it public again and all the stars are gone.
TempMail V2 is a cutting-edge temporary email solution designed for privacy-conscious users. Generate disposable email addresses instantly to protect your primary inbox from spam, tracking, and unwanted communications. Built with modern web technologies, TempMail V2 offers a sleek, responsive interface with powerful features like real-time inbox updates, dark mode, and seamless email management.
- β‘ Instant Email Generation: Create disposable emails with a single click
- π Auto-Refresh Capability: Keep your inbox updated automatically at customizable intervals
- π Advanced Search: Filter emails quickly by sender, subject, or content
- π Light & Dark Themes: Choose your preferred visual experience with theme persistence
- π± Responsive Design: Seamless experience across desktop, tablet, and mobile devices
- π Privacy Focused: No registration or personal information required
- π« Spam Protection: Keep your primary inbox clean from unwanted communications
- π Attachment Support: View and download email attachments securely
- Frontend: HTML5, CSS3 with custom variables for theming, JavaScript (ES6 Modules)
- Icons & UI: Font Awesome 6.0, custom animations
- APIs: Guerrilla Mail API for email operations
- Storage: LocalStorage for user preferences and session management
Experience TempMail V2 in action:
- A modern web browser
- Optional: Node.js and NPM if using Live Server
-
Clone the repository
git clone https://github.com/mehmetkahya0/temp-mail.git
-
Navigate to the project directory
cd temp-mail
-
Launch with your preferred method:
Option 1: Open index.html directly in your browser
Option 2: Use a local development server
If you have Node.js installed:
# Install Live Server globally npm install -g live-server # Start the server live-server
-
Access the application
Open your browser and navigate to:
http://127.0.0.1:8080
(if using Live Server)- or directly via the file:// protocol if opening index.html
- When you first load the application, a random email address is automatically generated
- Click the "New Address" button to generate a different disposable email
- Use the copy button to easily copy the email address to your clipboard
- Click "Load Mail" to manually fetch new messages (or enable auto-refresh)
- Use the search field to filter messages by sender, subject, or content
- Click the eye icon on any email to view its complete contents
- Remove unwanted emails with the trash icon
- Toggle between light and dark mode using the switch in the top-right corner
- Enable "Auto-refresh" and select your preferred interval (10s, 30s, or 1m)
- Access privacy policy and important information via the footer links
temp-mail/
βββ css/
β βββ style.css # Main stylesheet with theming and responsive design
βββ js/
β βββ api.js # API interactions and email functionality
β βββ config.js # Configuration and constants
β βββ theme.js # Theme switching functionality
βββ images/
β βββ banner.png # Project banner image
β βββ header.png # Header image
β βββ temp-mail-icon.png # Application icon
βββ privacy/
β βββ privacy.css # Privacy page styling
β βββ privacy.html # Privacy policy content
βββ index.html # Main application entry point
βββ manifest.json # PWA manifest file
βββ robots.txt # Search engine directives
βββ sitemap.xml # Site structure for search engines
βββ LICENSE # MIT license with commercial restrictions
βββ README.md # Project documentation
TempMail V2 uses a secure pseudorandom generation system to create unique email addresses. The system leverages the Guerrilla Mail API, ensuring high deliverability and compatibility with most services.
// Email generation example (simplified)
const randomStr = Math.random().toString(36).substring(2, 8);
const domain = CONFIG.DOMAINS[Math.floor(Math.random() * CONFIG.DOMAINS.length)];
// Result: randomStr@domain
The application features a sophisticated theming system using CSS variables and JavaScript. User preferences are stored in localStorage for persistence across sessions:
// Theme switching
if (darkMode) {
document.documentElement.setAttribute('data-theme', 'dark');
localStorage.setItem('theme', 'dark');
} else {
document.documentElement.setAttribute('data-theme', 'light');
localStorage.setItem('theme', 'light');
}
The inbox system provides real-time updates, efficient search capabilities, and intuitive email management:
- Auto-refresh with configurable intervals
- Full-text search across all email fields
- Modal-based email viewing with attachment support
- One-click email deletion
TempMail V2 is highly customizable to suit your needs:
-
API Provider
- Modify
CONFIG.API_BASE
injs/config.js
to use a different email API provider
- Modify
-
Available Domains
- Edit the
DOMAINS
array injs/config.js
to add or remove email domains
- Edit the
-
UI Theming
- Customize the look and feel by modifying CSS variables in
css/style.css
- Customize the look and feel by modifying CSS variables in
-
Auto-Refresh Intervals
- Add or modify refresh intervals in the HTML select options and handle them in JavaScript
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
See the open issues for a list of proposed features and known issues.
This project is licensed under the Special License with specific commercial restrictions - see the LICENSE file for details.
Important: While you can use this project for personal and educational purposes, commercial use requires explicit permission from the project author.
- Guerrilla Mail for their robust temporary email API
- Font Awesome for their comprehensive icon library
- All contributors who have helped improve this project