Skip to content

josskixg/TempMail-UnofficialAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

TempMail Unofficial API Wrapper

๐Ÿ“ฌ TempMail Unofficial API โ€” Multi-Language Wrappers

v1.1.0 โ€” Released 2026-07-02 ย |ย  Release Notes ย |ย  Changelog ย |ย  v1.1.0 Plan

๐Ÿ‡ฌ๐Ÿ‡ง English | ๐Ÿ‡ฎ๐Ÿ‡ฉ Bahasa Indonesia | ๐Ÿ‡จ๐Ÿ‡ณ ไธญๆ–‡


Collection of unofficial wrappers for various Temporary Email services, written in 7 programming languages. One repo, one goal: programmatically create and manage disposable emails with ease.

๐ŸŽฏ Supported Languages

Language Folder Package Manager Status
Go /go go get โœ… Done
Python /python pip โœ… Done
Java /java Maven / Gradle โœ… Done
PHP /php Composer โœ… Done
JavaScript /javascript npm / yarn โœ… Done
Rust /rust cargo โœ… Done
C# /csharp NuGet โœ… Done

๐ŸŒ Supported TempMail Services

The library wrapper currently supports 16 temporary email services:

# Service Website API Type Auth Difficulty Status
1 Mail.tm mail.tm REST+JSON Bearer Token โœ… Easy Active
2 GuerrillaMail guerrillamail.com REST Session Token โšก Medium Active
3 YOPmail yopmail.com HTML Scraping None โšก Medium Active
4 Dropmail dropmail.me GraphQL Token (auto) โœ… Easy Active
5 1secemail 1secemail.com REST None โœ… Easy Active
6 Ncaori Mail+ nca.my.id REST+JSON None โœ… Easy Active
7 Zoromail zoromail.com REST+JSON None โœ… Easy Active
8 Tempmail.lol tempmail.lol REST+JSON Token โœ… Easy Active
9 Tempmailc tempmailc.com REST+JSON None โœ… Easy Active
10 Temp-mail.io temp-mail.io REST+JSON Bearer Token โšก Medium Active
11 Tempmail.plus tempmail.plus REST+JSON None โœ… Easy Active
12 Emailfake emailfake.com HTML Scraping Cookie โšก Medium Active
13 Generator.email generator.email HTML Scraping Cookie โšก Medium Active
14 Mailnesia mailnesia.com HTML Scraping None โšก Medium Active
15 10minutemail 10minutemail.net HTML Scraping Cookie Session โšก Medium Active (via 10minutemail.net)
16 Email-temp email-temp.com HTML Scraping Cookie โšก Medium Active

๐Ÿ“ Project Structure

TempMail-UnofficialAPI/
โ”œโ”€โ”€ go/                   # Go wrapper
โ”œโ”€โ”€ python/               # Python wrapper
โ”œโ”€โ”€ java/                 # Java wrapper
โ”œโ”€โ”€ php/                  # PHP wrapper
โ”œโ”€โ”€ javascript/           # Node.js / JavaScript wrapper
โ”œโ”€โ”€ rust/                 # Rust wrapper
โ”œโ”€โ”€ csharp/               # C# / .NET wrapper
โ”œโ”€โ”€ docs/
โ”‚   โ””โ”€โ”€ plan/
โ”‚       โ””โ”€โ”€ PLAN_v1.1.0.md  # v1.1.0 implementation plan
โ”œโ”€โ”€ README.md             # English (default)
โ”œโ”€โ”€ README.id.md          # Bahasa Indonesia
โ”œโ”€โ”€ README.cn.md          # ไธญๆ–‡
โ”œโ”€โ”€ RELEASE_NOTES.md      # Per-version release notes
โ”œโ”€โ”€ CHANGELOG.md          # Full change history
โ”œโ”€โ”€ LICENSE               # Apache 2.0
โ””โ”€โ”€ NOTICE                # Attribution & disclaimer

๐Ÿš€ Quick Start

Each language has its own README. Click the folder above for installation details and usage examples.

General Example (Pseudocode)

// 1. Generate a temporary email
email = tempmail.generate()
// โ†’ "random123@mail.tm"

// 2. Check inbox
messages = tempmail.get_inbox(email)

// 3. Read a message
if messages.length > 0:
    content = tempmail.read_message(messages[0].id)

// 4. Delete (optional, auto-expire works too)
tempmail.delete(email)

โšก API Interface (All Languages)

All wrappers implement a consistent interface:

Method Description Return
generate_email() Generate a temporary email address string (email address)
get_inbox(email) Retrieve list of messages []Message
read_message(id) Read message content MessageDetail
delete_email(email) Delete email (cleanup) bool
wait_for_email(email, timeout) Poll for new messages Message or null

๐Ÿ“ฆ Data Model

Message

  • id โ€” Unique message identifier
  • from โ€” Sender address
  • subject โ€” Email subject
  • date โ€” Received timestamp

MessageDetail (extends Message)

  • body_text โ€” Plain text email body
  • body_html โ€” HTML email body (if available)
  • attachments โ€” List of attachment metadata

๐Ÿ›ก๏ธ Disclaimer

โš ๏ธ IMPORTANT

  • This project is UNOFFICIAL โ€” not affiliated with any tempmail service.
  • API endpoints may change at any time without notice.
  • Use for testing, development, or personal automation only.
  • Do not use for spam, fraud, or any illegal activity.
  • Some services have rate limits โ€” use responsibly.

๐Ÿค Contributing

Want to add a language? Fix a bug? Go ahead:

  1. Fork this repo at github.com/josskixg/TempMail-UnofficialAPI
  2. Create a branch: feat/add-kotlin-wrapper
  3. Commit & push
  4. Open a Pull Request

Contribution Guidelines

  • Follow the existing interface structure
  • Add usage examples in the per-language README
  • Never hardcode API keys (use environment variables)
  • Test before submitting a PR

๐Ÿ—บ๏ธ Roadmap

v1.1.0 shipped with 16 services across 7 languages. Planned for upcoming releases:

  • Improved YOPmail & Scraping resilience โ€” anti-bot bypass improvements and headless support
  • WebSocket support for Dropmail.me and Mail.tm (real-time inbox subscription)
  • More languages โ€” Kotlin, Swift, and Ruby wrappers
  • CLI tool โ€” unified command-line tool to manage temporary mailboxes across all providers directly from your terminal

Contributions welcome โ€” see CONTRIBUTING.md and open a PR or Issue.

๐Ÿ“„ License

Apache License 2.0 โ€” see LICENSE and NOTICE.


๐ŸŒŸ Star this repo if it helps your project!
Built with ๐Ÿซ  by the community, for the community.

About

๐Ÿ“ฌ Unofficial TempMail API wrappers & SDKs for Go, Python, JavaScript, Rust, Java, PHP, and C#. Programmatically manage disposable emails with ease.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors