guerrillamail-client

Crates.ioguerrillamail-client
lib.rsguerrillamail-client
version0.2.1
created_at2026-01-12 13:07:53.796551+00
updated_at2026-01-18 12:34:19.499856+00
descriptionAsync Rust client for GuerrillaMail temporary email service
homepage
repositoryhttps://github.com/11philip22/guerrillamail-client-rs
max_upload_size
id2037692
size70,354
Philip (11philip22)

documentation

README

guerrillamail-client

Crates.io Documentation License: MIT

GuerrillaMail

An async Rust client for the GuerrillaMail temporary email service.

Features

  • 🚀 Async/await - Built on tokio and reqwest
  • 📧 Create temporary emails - Generate disposable email addresses
  • 📬 Check inbox - Retrieve messages from your temporary inbox
  • 🗑️ Delete emails - Clean up when done
  • 🌐 Proxy support - Route requests through HTTP proxies

Installation

Add to your Cargo.toml:

[dependencies]
guerrillamail = "0.1"
tokio = { version = "1", features = ["full"] }

Quick Start

use guerrillamail::Client;

#[tokio::main]
async fn main() -> Result<(), guerrillamail::Error> {
    // Create a new client
    let client = Client::new().await?;
    
    // Create a temporary email address
    let email = client.create_email("myalias", None).await?;
    println!("Temporary email: {}", email);
    
    // Check for messages
    let messages = client.get_messages(&email).await?;
    for msg in messages {
        println!("From: {}", msg.mail_from);
        println!("Subject: {}", msg.mail_subject);
    }
    
    // Delete when done
    client.delete_email(&email).await?;
    
    Ok(())
}

Acknowledgements

This library is a Rust port of GuerrillaMail-Python.

License

MIT License - see license for details.

Commit count: 14

cargo fmt