[−][src]Function mail_test_account::test_account_info_with_tag
pub fn test_account_info_with_tag(
tag: &str
) -> Result<AccountAndServiceInfo, Error>
Get the test account for the given tag, if there is non create one and store it.
This uses the XDG directory spec for storing the account (as json). By default
it will store the account in ~/.config/mail-test-account/<tag>.json
.
If no account is available for given tag it will create a ethereal.mail
account
and store it. The created accounts have random username/mail-address and password.
No mail send to them get ever delivered, or semantically validated. So while you can
use it for testing, it will not fail if you e.g. switch up from and to address. But
you can use IMAP/POP3 to pull mails from there and validate them.