#temporary #service #1secmail #temp-mail

bin+lib temporary_mail

Rust wrapper of 1secmail temporary mail service

1 unstable release

0.1.2 Feb 24, 2022
0.1.1 Feb 23, 2022
0.1.0 Feb 23, 2022

#236 in Email

MIT license

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–19MB
~278K SLoC