| Crates.io | async_temporary_mail |
| lib.rs | async_temporary_mail |
| version | 0.1.1 |
| created_at | 2023-07-05 16:28:25.787716+00 |
| updated_at | 2023-07-05 16:35:43.862884+00 |
| description | Rust wrapper of 1secmail temporary mail service |
| homepage | |
| repository | https://github.com/nik012003/async_temporary_mail |
| max_upload_size | |
| id | 909219 |
| size | 7,390 |
Based on the temporary_mail
use temporary_mail::TempMail;
let temp_mail = TempMail::new();
From TempMail you can retrieve:
println!("{}", temp_mail.get_address());
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));
}