ted.backer@gmail is a valid e-mail address?
The below prints true. Why is that?
use email_address::*;
fn main() {
println!("{}", EmailAddress::is_valid("ted.backer@gmail"));
}
This is valid because in RFCs, gmail may be a valid local domain name, it does not necessarily have to be a public domain.
This sounds like something that would be useful for intranet application. Would it be possible to have an options that would make it more tailored to the activity of verifying e-mail addresses for website sign-ups?
This sounds like something that would be useful for intranet application. Would it be possible to have an options that would make it more tailored to the activity of verifying e-mail addresses for website sign-ups?
I think you can review https://docs.rs/email_address/latest/email_address/struct.Options.html, if you are verifying e-mail addresses for website sign-ups, regex may be better.