burnex v2.2.0 Burnex

Elixir burner email (temporary address) detector. List from https://github.com/wesbos/burner-email-providers/blob/master/emails.txt

Link to this section Summary

Functions

Check if email is a temporary / burner address

Check a domain

Returns the list of all blacklisted domains providers

Link to this section Functions

Link to this function is_burner?(email, resolve_mx_record \\ false)
is_burner?(binary(), boolean()) :: boolean()

Check if email is a temporary / burner address.

Optionally resolve the MX record

Examples

iex> Burnex.is_burner?("my-email@gmail.com")
false
iex> Burnex.is_burner?("my-email@yopmail.fr")
true
iex> Burnex.is_burner? "invalid.format.yopmail.fr"
false
iex> Burnex.is_burner?("my-email@gmail.fr", true)
{true, "Cannot find MX record"}
Link to this function is_burner_domain?(domain)
is_burner_domain?(binary()) :: boolean()

Check a domain

Examples

iex> Burnex.is_burner_domain?("yopmail.fr")
true
iex> Burnex.is_burner_domain?("")
false
iex> Burnex.is_burner_domain?("gmail.com")
false
Link to this function is_burner_mx_record?(domain)
is_burner_mx_record?(binary()) :: boolean() | {boolean(), binary()}

Returns the list of all blacklisted domains providers