EmailVerifier is a composable, pluggable Kotlin library for validating email addresses beyond just their syntax. It's built with a clear focus: help d

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2025-07-29 18:30:10

EmailVerifier is a composable, pluggable Kotlin library for validating email addresses beyond just their syntax. It's built with a clear focus: help developers reliably assess whether a given email is real, meaningful, and worth accepting.

Checks whether the email domain belongs to a known free‐email provider (e.g. gmail.com, yahoo.com) using a curated list of popular services.

Detects generic or departmental username (e.g. info@, admin@, support@) by checking against a curated list of common role-based usernames.

List used: https://github.com/mbalatsko/role-based-email-addresses-list (original repo: https://github.com/mixmaxhq/role-based-email-addresses)

For environments without internet access, EmailVerifier can run in a fully offline mode. When enabled, it uses bundled data for checks that support it (Syntax, Registrability, Disposability, Free Email, and Role-Based Username) and automatically disables checks that require network access (MX Record, Gravatar, SMTP).

For Disposable Email Detection, Free Email Provider Detection, and Role-Based Username Detection, the result is a CheckResult<DatasetData>. The Passed state indicates the email is not disposable/free/role-based, while Failed indicates it is. The DatasetData object provides more context, including the specific rule or entry that was matched.

Leave a Comment
Related Posts