email_checker v0.1.1 EmailChecker
Simple library checking the validity of an email.
Checks (in order)
- REGEX: validate the emails has a good looking format
- MX: validate the domain sever contains MX records
- SMTP: validate the SMTP behind the MX records knows this email address (no email sent; disabled by default)
Summary
Functions
Check a given Email
Functions
valid?(email, validations \\ configured_validations())
valid?(String.t, [EmailChecker.Check]) :: boolean
Check a given Email
Parameters
email
-binary
- the email to checkvalidations
-function[]
- the checks to use (default from config)
Example
iex> EmailChecker.valid?("test@test.ch", [EmailChecker.Check.Format])
true