Skip to content

Check if an email address exists without sending any email, written in Rust. Comes with a ⚙️ HTTP backend.

Add debug message

Amaury Martiny0d4b13b06706
diff --git a/src/smtp.rs b/src/smtp.rs
index 26de2510..3ca18a42 100644
--- a/src/smtp.rs
+++ b/src/smtp.rs
@@ -78,5 +78,9 @@ pub fn email_exists(from: &str, to: &str, host: &Name, port: u16) -> Result<bool
// Quit.
smtp_client.close();
+ match result {
+ Ok(val) => debug!("Checked email on {}:{}, exists={}.", host, port, val),
+ Err(_) => debug!("Cannot check email on {}:{}.", host, port),
+ };
result
}