Skip to content

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

License

Notifications You must be signed in to change notification settings

oshanz/disposable-email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DisposableEmail

A GenServer-based Elixir library for detecting disposable email addresses using the disposable-email-domains blocklist.

This library periodically downloads and caches a list of known disposable email domains, allowing you to quickly check if an email address is from a temporary email service.

Features

## https://hexdocs.pm/quantum/Quantum.html
config :my_app, MyApp.Scheduler,
  jobs: [
    {"@daily", {DisposableEmail, :reload, []}},
  ]

Installation

Add disposable_email to your list of dependencies in mix.exs:

def deps do
  [
    {:disposable_email, "~> 0.4.1"}
  ]
end

Usage

# Check if an email is from a disposable domain
DisposableEmail.disposable?("[email protected]")
# => true

DisposableEmail.disposable?("[email protected]")
# => false

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages