A library for validating and parsing email addresses respecting RFC 5321 and RFC 5322. It uses elm/parser
under the covers.
import Email exposing (isValid)
isValid "[email protected]" == True
import Email exposing (parse)
parse "[email protected]" == Ok { local = "hello", domain = "world.com" }
import Email exposing (toString)
toString { local = "hello", domain = "world.com" } == "[email protected]"