View Source Bonfire.Mailer.Checker (bonfire v0.3.5-classic-beta.4)

Functions for checking the validity of email addresses and domains

Link to this section Summary

Functions

Checks whether an email domain is valid, returns a reason if not

Checks whether an email is valid, returns a reason if not

Link to this section Types

@type error_reason() :: :format | :mx

Link to this section Functions

@spec validate_domain(domain :: binary()) :: :ok | {:error, error_reason()}

Checks whether an email domain is valid, returns a reason if not

@spec validate_email(email :: binary()) :: :ok | {:error, error_reason()}

Checks whether an email is valid, returns a reason if not