Skip to content

isBizMail tells you whether a given email address belongs to a free email account provider (gmail.com, yahoo.es, yandex.ru etc) or not.

License

Notifications You must be signed in to change notification settings

salaros/is-biz-mail-dotnet

Repository files navigation

Business Email Checker Build status AppVeyor tests branch Coverage Status

License NuGet NuGet .NET Standard

Donate Patreon Donate Paypal Donate Liberapay

isBizMail tells you whether a given email address is free (gmail.com, yahoo.es, yandex.ru etc) or not. The list of emails used by isBizMail is taken from here¹. Detects around 2500 domains and subdomains.

  1. All credits for the list itself go to SpamAssasin authors and contributors

Looking for JavaScript, PHP etc?

🟊🟊🟊 Support this project 🟊🟊🟊

You can support us in a small way, please consider starring and sharing this repo! It helps us getting known and grow the community.

star us

Installation

You can install IsBizMail for .NET Core 2.0+ / Framework 4.6.1+, Mono 5.4+ etc via NuGet.

You could build it from sources via:

dotnet build

IsBizMail in .NET is a static class, so can use it like this:

using Salaros.Email;

//..
{
    Console.WriteLine(IsBizMail.IsValid("foo@bar.com"));        // true
    Console.WriteLine(IsBizMail.IsValid("hello@gmail.com"));    // false
}
//..

Testing: xUnit.net

dotnet test tests