async_temporary_mail

Crates.ioasync_temporary_mail
lib.rsasync_temporary_mail
version0.1.1
sourcesrc
created_at2023-07-05 16:28:25.787716
updated_at2023-07-05 16:35:43.862884
descriptionRust wrapper of 1secmail temporary mail service
homepage
repositoryhttps://github.com/nik012003/async_temporary_mail
max_upload_size
id909219
size7,390
Nicola Guerrera (nik012003)

documentation

README

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));
}
Commit count: 9

cargo fmt