Skip to main content

validate_email

Function validate_email 

Source
pub fn validate_email(email: &str) -> Result<(), Error>
Expand description

Validate an email for admin-level correctness. Intentionally not full RFC 5322 — we accept any address with a local part, an @, and a domain containing a .. That rejects the common-mistake class (typos, obvious malformed input) without pretending to police delivery validity.