Skip to content

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

fix(core): Use Smtp for Gmail by default

Amaury8e79884314f0
diff --git a/backend/src/worker/check_email.rs b/backend/src/worker/check_email.rs
index 679948b1..40151218 100644
--- a/backend/src/worker/check_email.rs
+++ b/backend/src/worker/check_email.rs
@@ -58,7 +58,6 @@ pub async fn process_check_email(
let output = check_email(payload.input).await;
info!(target: LOG_TARGET, email=output.input, is_reachable=?output.is_reachable, "Done check");
- debug!(target: LOG_TARGET, output=?output, "Done check");
let reply_payload = serde_json::to_string(&output)?;
let reply_payload = reply_payload.as_bytes();
diff --git a/core/src/util/input_output.rs b/core/src/util/input_output.rs
index 683657a6..a6ff3931 100644
--- a/core/src/util/input_output.rs
+++ b/core/src/util/input_output.rs
@@ -247,7 +247,7 @@ impl Default for CheckEmailInput {
yahoo_verif_method: YahooVerifMethod::Api,
#[cfg(feature = "headless")]
yahoo_verif_method: YahooVerifMethod::Headless,
- gmail_verif_method: GmailVerifMethod::Api,
+ gmail_verif_method: GmailVerifMethod::Smtp,
#[cfg(not(feature = "headless"))]
hotmail_verif_method: HotmailVerifMethod::OneDriveApi,
#[cfg(feature = "headless")]