email_checker v0.1.1 EmailChecker.Check.MX

Check if an emails server has a valid MX record.

Summary

Functions

Check if an emails server has a valid MX record

Functions

valid?(email)
valid?(String.t) :: boolean

Check if an emails server has a valid MX record.

Parameters

  • email - binary - the email to check

Example

iex> EmailChecker.Check.MX.valid?("test@gmail.com")
true

iex> EmailChecker.Check.MX.valid?("test@invalid-domains-foobar.com")
true