temporary_mail

Crates.iotemporary_mail
lib.rstemporary_mail
version0.1.2
sourcesrc
created_at2022-02-23 14:05:08.371815
updated_at2022-02-24 01:03:36.437147
descriptionRust wrapper of 1secmail temporary mail service
homepage
repositoryhttps://github.com/DILECPEDO/temporary_mail
max_upload_size
id537882
size32,666
Dilec Padovani (DilecPadovani)

documentation

README

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

cargo fmt