Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.13 KB

README.md

File metadata and controls

30 lines (23 loc) · 1.13 KB

Email validator for Erlang

Build Status Erlang Versions

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).

Using the library

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.