Soenneker.Validators.Email.Disposable 4.0.4719

Prefix Reserved
dotnet add package Soenneker.Validators.Email.Disposable --version 4.0.4719
                    
NuGet\Install-Package Soenneker.Validators.Email.Disposable -Version 4.0.4719
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Validators.Email.Disposable" Version="4.0.4719" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Validators.Email.Disposable" Version="4.0.4719" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Validators.Email.Disposable" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Validators.Email.Disposable --version 4.0.4719
                    
#r "nuget: Soenneker.Validators.Email.Disposable, 4.0.4719"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Validators.Email.Disposable@4.0.4719
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Validators.Email.Disposable&version=4.0.4719
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Validators.Email.Disposable&version=4.0.4719
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Validators.Email.Disposable

Checks email domains against a packaged disposable/temporary-domain list without making network requests.

Installation

dotnet add package Soenneker.Validators.Email.Disposable

Registration

using Soenneker.Validators.Email.Disposable.Registrars;

services.AddEmailDisposableValidatorAsSingleton();

Singleton registration is recommended because the domain file is loaded lazily into a HashSet once per validator instance. Scoped registration is available but reloads the data for each scope that uses the validator.

Validate an email

using Soenneker.Validators.Email.Disposable.Abstract;

bool accepted = await validator.Validate(
    "person@example.com",
    cancellationToken: cancellationToken);

The result is false when the input is blank, does not contain non-empty text on both sides of its last @, or its extracted domain is present in the packaged list. It returns true when the domain is not listed.

This is not email syntax validation. For example, the domain is obtained from the text after the last @; no mailbox grammar, internationalized-domain normalization, or deliverability check is performed. Combine it with a syntax validator when accepting user addresses.

Validate a domain directly

bool accepted = await validator.ValidateDomain(
    "mailinator.com",
    cancellationToken: cancellationToken);

Matching is case-insensitive and exact. A parent domain match does not automatically reject a subdomain, and input is not trimmed or converted from Unicode to Punycode. Normalize domains before calling when those behaviors are required.

Data and failure behavior

The list comes from the installed Soenneker.Data.Email.Disposables package and is not refreshed over the network at runtime. Updating the application dependency is what updates the packaged data. A true result means only “not present in this list”; providers can appear, disappear, or evade list-based detection.

The first validation loads the resource file. Missing-resource and file-read failures propagate, as does cancellation during that load.

Set log: true only when it is acceptable to write the matched email address or domain to logs. Blank-input warnings are logged regardless of that flag. Email addresses are personal data in many environments, so prefer direct-domain validation or leave match logging disabled unless operationally necessary.

The validator implements synchronous and asynchronous disposal for its lazy resource holder. Dependency injection disposes registered instances automatically.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.4719 0 9/23/2026
4.0.4718 83 9/21/2026
4.0.4717 89 9/20/2026
4.0.4716 82 9/19/2026
4.0.4715 87 9/18/2026
4.0.4714 69 9/17/2026
4.0.4713 99 9/16/2026
4.0.4712 85 9/16/2026
4.0.4711 93 9/16/2026
4.0.4708 83 9/16/2026
4.0.4707 85 9/16/2026
4.0.4705 95 9/16/2026
4.0.4702 89 9/15/2026
4.0.4701 86 9/15/2026
4.0.4699 103 9/14/2026
4.0.4698 93 9/14/2026
4.0.4697 95 9/13/2026
4.0.4695 89 9/13/2026
4.0.4694 90 9/13/2026
4.0.4693 89 9/13/2026
Loading failed

Update dependency Soenneker.Data.Email.Disposables to 4.0.1077 (#5237)