Library for email address validation based on RFC5321 (Simple Mail Transfer Protocol) with support for UTF-8 email headers (RFC6532, RFC6531) and stricter IP address grammar (RFC3986).
Add library as dependency in rebar.config
{deps, [
{email_validator, "1.0.0"}
...
]}.
Add email_validator
as application dependency
{application, app,
[
{applications, [
...
email_validator
]},
...
]}.
Use email_validator:validate/1
for email validation.