A powerful command-line tool for creating and managing temporary/disposable email addresses.
β¨ Create temporary email addresses - Generate random or custom email names
π¬ Check inbox - View received emails in real-time
π Read emails - Read full email content from the terminal
π€ Send emails - Send emails using your own SMTP account (optional)
π Manage multiple emails - Store and switch between multiple temporary addresses
ποΈ Delete emails - Clean up your email list
π¨ Colorful interface - Easy-to-read colored output
- Clone or copy the repository:
cd~/labs
git clone <repo-url> email-cli
cd email-cli- Make the script executable (already done):
chmod +x tempmail- Run the install script:
./install.shOr manually add to PATH:
sudo ln -s /home/kali/labs/email-cli/email /usr/local/bin/emailOr add an alias to your .zshrc:
echo"alias email='/home/kali/labs/email-cli/email'">>~/.zshrc
source~/.zshrcTo send emails (not just receive), you need to configure SMTP:
- Copy the sample config:
cp .env.sample ~/.config/tempmail/.env- Edit the config file:
nano ~/.config/tempmail/.env- Choose one of these FREE options:
Option 1: Gmail (Easiest)
- Go to: https://myaccount.google.com/apppasswords
- Generate an App Password (16 characters)
- Use these settings:
SMTP_HOST=smtp.gmail.com SMTP_PORT=587 SMTP_USER=your-gmail@gmail.com SMTP_PASS=your-16-char-app-password FROM_NAME=Your Name
Option 2: Outlook/Hotmail (Free)
SMTP_HOST=smtp-mail.outlook.com
SMTP_PORT=587
SMTP_USER=your-email@outlook.com
SMTP_PASS=your-password
FROM_NAME=Your Name
Option 3: SendGrid (100 emails/day free)
- Sign up at: https://sendgrid.com
- Create an API Key
- Use:
SMTP_HOST=smtp.sendgrid.net SMTP_PORT=587 SMTP_USER=apikey SMTP_PASS=your-sendgrid-api-key FROM_NAME=Your Name
That's it! Now you can send emails with email send
email createYou'll be prompted to enter a custom name or press Enter for a random one.
email listemail inboxOr check a specific email:
email inbox user@domain.comemail read<email-id>Interactive mode:
email sendYou'll be prompted for recipient, subject, and body.
Quick send:
email send friend@example.com "Hello!""How are you?"Multi-line body:
email send friend@example.com "My Subject"# Then type your message and press Ctrl+D when doneemail use user@domain.com
# Or use partial match:
email use useremail currentemail delete user@domain.comemail clear| Command | Alias | Description |
|---|---|---|
create | - | Create a new temporary email |
list | ls | List all stored emails |
inbox | check | Check inbox for messages |
read | show | Read a specific email by ID |
send | compose | Send an email (requires SMTP config) |
use | set | Set an email as current (supports partial match) |
current | - | Show current active email |
delete | del, rm | Delete email from list |
clear | - | Delete all emails |
help | -h, --help | Show help message |
Create a custom email:
$ email create
Enter email name (leave empty for random): mytest123
β
Email created successfully!
π§ Email: mytest123@1secmail.comCheck your inbox:
$ email inbox
π¬ Checking inbox for: mytest123@1secmail.com
π¨ Found 2 message(s):
ID: 12345
From: noreply@example.com
Subject: Welcome!
Date: 2025-10-01 17:00:00
---Read an email:
$ email read 12345
π Reading email ID: 12345 from mytest123@1secmail.com
From: noreply@example.com
To: mytest123@1secmail.com
Subject: Welcome!
Date: 2025-10-01 17:00:00
Hello! Welcome to our service...Send an email:
$ email send friend@example.com "Quick hello""Just testing!"
π€ Sending email...
β
Email sent successfully!
To: friend@example.com
Subject: Quick helloThe tool uses the 1secmail.com API to create temporary email addresses.
Receiving emails:
- β±οΈ Temporary addresses that will expire
- π Completely free
- π No registration required
- π¨ Receive emails instantly
Sending emails (optional):
- π€ Uses your own SMTP account (Gmail, Outlook, SendGrid, etc.)
- π Free tier available on all major providers
- π Your credentials stored locally in
~/.config/tempmail/.env - βοΈ Emails sent from your real address (temp email in Reply-To)
All data is stored locally in ~/.config/tempmail/:
emails.json- List of your temporary emailscurrent_email- Currently active email.env- SMTP credentials (optional, for sending)
Core requirements:
bash(version 4.0+)curl(for API requests)jq(for JSON parsing)
For sending emails (optional):
python3(usually pre-installed)
Install requirements on Kali Linux:
sudo apt-get install curl jq python3- Temporary emails may be deleted by the service
- No guarantees on email delivery or storage
- Sending requires your own SMTP account (optional)
- Best for testing, signups, and temporary needs
- Not suitable for important communications
- SMTP credentials are stored locally and never shared
Current version: 0.1.0
See CHANGELOG.md for detailed version history and release notes.
Free to use and modify.
Feel free to submit issues or pull requests!
Made with β€οΈ for quick and easy temporary email management