Packages

Detect disposable and temporary email addresses by checking domains against a regularly updated list from the disposable-email-domains repository.

Current section

Files

Jump to
disposable_email lib disposable_email application.ex
Raw

lib/disposable_email/application.ex

defmodule DisposableEmail.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Starts a worker by calling: DisposableEmail.Worker.start_link(arg)
# {DisposableEmail.Worker, arg}
DisposableEmail
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: DisposableEmail.Supervisor]
Supervisor.start_link(children, opts)
end
end