#detection #domain #check #verification #validation #verify

bin+lib email-verifier

A simple Rust crate to verify email addresses

5 releases

0.1.4 May 28, 2024
0.1.3 May 21, 2024
0.1.2 May 21, 2024
0.1.1 May 21, 2024
0.1.0 May 20, 2024

#99 in Email

Download history 3/week @ 2024-09-23

242 downloads per month

MIT license

14KB

email-verifier

A simple Rust crate to verify email addresses.

Overview

email-verifier is a easy-to-use Rust crate that simplifies the process of verifing email addresses and/or getting data essential data on them.

Features

  • Syntax Validation: Checks if the email address follows the standard format.
  • Domain Verification: Ensures the domain of the email address is valid and exists.
  • Disposable Email Detection: Detects if the email address belongs to a disposable email provider.
  • Webmail Detection: Identifies if the email address is from a webmail provider.
  • Deliverability Check: Verifies if the email address is deliverable.
  • Catch-all Domain Detection: Determines if the domain accepts emails to any address.
  • Gibberish Detection: Checks if the email address appears to be gibberish.
  • Spam Detection: Checks if the email address is likely to be associated with spam.

Installation

Add rust-translate and tokio to your Cargo.toml file:

[dependencies]
email-verifier = "0.1.4"

Add the latest version of email-verifier with cargo add email-verifier.

Usage

use email_verifier::fetch_email_data;
fn main() {
    match fetch_email_data("test@mail7efe.io") {
        Ok(response) => println!("{:?}", response),
        Err(e) => eprintln!("Error: {}", e),
    }
}

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Crates.io

You can find this crate and the latest version on crates.io.

Dependencies

~4–16MB
~193K SLoC