#temporary #service #async #1secmail

async_temporary_mail

Rust wrapper of 1secmail temporary mail service

2 releases

0.1.1 Jul 5, 2023
0.1.0 Jul 5, 2023

#256 in Email

MIT license

8KB
136 lines

temporary_mail

Async Rust wrapper of 1secmail temporary mail service

Based on the temporary_mail

use temporary_mail::TempMail;

let temp_mail = TempMail::new();

From TempMail you can retrieve:

Email address

println!("{}", temp_mail.get_address());

Email inbox

let emails: Result<Vec<Email>> = temp_mail.get_inbox().await;

// print received emails
if let Ok(emails) = emails {
    emails.iter().for_each(|mail| println!("{:?}", mail));
}

Dependencies

~5–17MB
~238K SLoC