Skip to content

josskixg/TempMail-UnofficialAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

TempMail Unofficial API Wrapper

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

v1.0.0 โ€” Released 2026-06-30 ย |ย  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

# Service Website API Type Auth Difficulty
1 Mail.tm mail.tm REST+JSON Bearer Token โœ… Easy
2 GuerrillaMail guerrillamail.com REST Session Token โšก Medium
3 YOPmail yopmail.com HTML Scraping None โšก Medium
4 Dropmail dropmail.me GraphQL Token (auto) โœ… Easy
5 1secemail 1secemail.com REST None โœ… Easy
6 Ncaori Mail+ nca.my.id REST+JSON None โœ… Easy

๐Ÿ“ 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
โ”œโ”€โ”€ README.md         # English (default)
โ”œโ”€โ”€ README.id.md      # Bahasa Indonesia
โ”œโ”€โ”€ README.cn.md      # ไธญๆ–‡
โ”œโ”€โ”€ 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
  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.0.0 shipped with 5 services across 7 languages. Planned for upcoming releases:

  • Additional providers โ€” new temporary email services to be added in v1.1+
  • Improved YOPmail scraping โ€” resilience against DOM changes and anti-bot improvements
  • WebSocket support for Dropmail.me (real-time inbox subscription)
  • More languages โ€” Kotlin, Swift, Ruby pending community interest
  • CLI tool โ€” unified command-line interface across all providers

Contributions welcome โ€” see CONTRIBUTING.md.

๐Ÿ“„ 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