Check if an email address exists without sending any email, written in Rust. Comes with a ⚙️ HTTP backend.
Rust emailemail-validationemail-validation-apiemail-verificationemail-verification-apiemail-verifierhacktoberfest
Add comment
Amaury Martinya23d399d6515
diff --git a/src/lib.rs b/src/lib.rsindex 4c2973b9..7c9ee431 100644--- a/src/lib.rs+++ b/src/lib.rs@@ -28,7 +28,7 @@ pub fn email_exists(from_email: &str, to_email: &str) -> bool {debug!("Getting MX lookup...");let hosts = mx_hosts::get_mx_lookup(domain);debug!("Found the following MX hosts {:?}", hosts);- let ports = vec![SMTP_PORT, SUBMISSION_PORT, SUBMISSIONS_PORT];+ let ports = vec![SMTP_PORT, SUBMISSION_PORT, SUBMISSIONS_PORT]; // 25, 587, 465let mut combinations = Vec::new(); // `(host, port)` combinationfor port in ports.into_iter() {for host in hosts.iter() {