Skip to content

An e-mail verification tool including format verification, domain validation and MX recording control

Notifications You must be signed in to change notification settings

ibrahimsezer/email-validator

Repository files navigation

Email Validator

Dart License: MIT

An e-mail verification tool including format verification, domain validation and MX recording control.

Features

  • Email Format Validation: Validates email addresses against standard format rules
  • Domain Validation: Verifies if the email domain is active and accessible
  • MX Record Checking: Retrieves and displays MX (Mail Exchange) records for the email domain
  • CSV Export: Automatically exports validation results to a CSV file with timestamp

Installation

  1. Ensure you have Dart SDK installed (version ^3.6.0)
  2. Clone the repository:
    git clone https://github.com/ibrahimsezer/email-validator.git
  3. Navigate to the project directory:
    cd email-validator
  4. Install dependencies:
    dart pub get

Usage

Run the application using:

dart run

The program will:

  1. Prompt you to enter an email address
  2. Validate the email format
  3. Check domain validity
  4. Retrieve MX records
  5. Save results to a CSV file
  6. Allow you to check multiple emails in one session

Dependencies

  • http: ^1.3.0 - For making HTTP requests
  • csv: ^6.0.0 - For CSV file operations
  • intl: ^0.20.2 - For date formatting

Testing

Run tests using:

dart test

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Author

👤 Ibrahim Sezer

About

An e-mail verification tool including format verification, domain validation and MX recording control

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published