2 releases
0.1.1 | Jul 5, 2023 |
---|---|
0.1.0 | Jul 5, 2023 |
#254 in Email
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–21MB
~244K SLoC