Crates.io | mailtester_ninja |
lib.rs | mailtester_ninja |
version | 0.1.0 |
source | src |
created_at | 2024-09-23 07:53:40.538088 |
updated_at | 2024-09-23 07:53:40.538088 |
description | MailTester Ninja is packed with essential features designed to enhance your email marketing efforts. |
homepage | https://mailtester.ninja/ |
repository | https://github.com/alayahharvey/mailtester-ninja |
max_upload_size | |
id | 1383657 |
size | 5,272 |
MailTester Ninja is a Rust-based email verification tool designed to help developers and businesses validate email addresses in real-time, clean email lists, and improve email verification and deliverability. The tool offers features like syntax checking, domain validation, MX record verification, and more.
To use MailTester Ninja in your Rust project, add it to your Cargo.toml
:
[dependencies]
mailtester_ninja = "0.1.0"
Then, run:
cargo build
Use the verify_email
function to check an email's validity in real-time.
use mailtester_ninja::verify_email;
fn main() {
let email = "example@domain.com";
let result = verify_email(email);
match result {
Ok(status) => println!("Email status: {:?}", status),
Err(e) => println!("Error verifying email: {:?}", e),
}
}
To verify multiple emails in bulk, you can use the verify_bulk_emails
function:
use mailtester_ninja::verify_bulk_emails;
fn main() {
let emails = vec![
"test1@domain.com",
"test2@domain.com",
"fake@nonexistent.com"
];
let results = verify_bulk_emails(emails);
for (email, result) in results {
println!("{}: {:?}", email, result);
}
}
MailTester Ninja provides API integration for real-time validation. Here’s an example of how to use the verify_email_api
function with an API key:
use mailtester_ninja::verify_email_api;
fn main() {
let api_key = "your_api_key";
let email = "example@domain.com";
let result = verify_email_api(api_key, email);
match result {
Ok(status) => println!("Email status: {:?}", status),
Err(e) => println!("Error verifying email via API: {:?}", e),
}
}
You can configure MailTester Ninja by creating a configuration file or passing settings directly to functions. Options include setting a timeout for email verification, toggling certain validation features (like catch-all detection), and more.
We welcome contributions! Please fork the repository, create a new branch, and submit a pull request with your changes. Ensure that your code follows the Rust style guide and includes tests for any new features or bug fixes.
MailTester Ninja is licensed under the MIT License. See the LICENSE file for more details.
For help or inquiries, open an issue on the GitHub repository or contact us via email at support@mailtester.ninja