Skip to main content

Module email

Module email 

Source
Expand description

Email validation and normalization helpers. Email validation and normalization helpers.

The helpers implement Aster’s lightweight email contract: trim and lowercase values, reject obviously malformed addresses, and keep the behavior independent from any account or identity provider model.

Functions§

email_domain
Returns the lowercased domain portion of an email address.
normalize_email
Trims and lowercases an email address, then validates it.
validate_email
Validates a normalized email address using Aster’s lightweight email rules.