DisposableEmail (disposable_email v0.5.4)

View Source

Disposable Email Verification Service

Summary

Functions

Return the blocklist count.

Returns a specification to start this module under a supervisor.

Check if an email is from a disposable domain

Reseed the blocklist from the remote repository.

Functions

blocklist_size()

@spec blocklist_size() :: non_neg_integer()

Return the blocklist count.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

disposable?(email)

@spec disposable?(String.t()) :: boolean()

Check if an email is from a disposable domain

DisposableEmail.disposable?("user@tempmail.com")
=> true

DisposableEmail.disposable?("user@gmail.com")
=> false

reload()

@spec reload() :: :ok

Reseed the blocklist from the remote repository.

start_link(init_arg)