EmailChecker.Check.MX (email_checker v0.2.3)

Check if an emails server has a valid MX record.

Link to this section Summary

Functions

Check if an emails server has a valid MX record.

Link to this section Functions

Specs

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