1 unstable release
0.1.2 | Feb 24, 2022 |
---|---|
0.1.1 |
|
0.1.0 |
|
#292 in Email
10KB
140 lines
temporary_mail
Rust wrapper of 1secmail temporary mail service
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: Option<Vec<Email>> = temp_mail.get_inbox()
// print received emails
if let Some(emails) = emails {
emails.iter().for_each(|mail| println!("{:?}", mail));
}
Dependencies
~5–21MB
~245K SLoC