Skip to content

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

fix(core): More robust Hotmail invalid check

Amauryee741f457005
diff --git a/core/src/smtp/outlook/headless.rs b/core/src/smtp/outlook/headless.rs
index 92bed709..1011ee41 100644
--- a/core/src/smtp/outlook/headless.rs
+++ b/core/src/smtp/outlook/headless.rs
@@ -67,18 +67,23 @@ pub async fn check_password_recovery(
.wait()
.for_element(Locator::Id("pMemberNameErr"))
.and_then(|_| async { Ok(false) });
- // "We need to verify your identity" means that the account exists.
+ // "Try entering your Microsoft account again. We don't recognise this one."
let f2 = c
+ .wait()
+ .for_element(Locator::Id("iSigninNameError"))
+ .and_then(|_| async { Ok(false) });
+ // "We need to verify your identity" means that the account exists.
+ let f3 = c
.wait()
.for_element(Locator::Id("iSelectProofTitle"))
.and_then(|_| async { Ok(true) });
// "Enter the code generated by your authenticator app..."
- let f3 = c
+ let f4 = c
.wait()
.for_element(Locator::Id("iEnterVerification"))
.and_then(|_| async { Ok(true) });
- let is_deliverable = f1.try_race(f2).try_race(f3).await?;
+ let is_deliverable = f1.try_race(f2).try_race(f3).try_race(f4).await?;
if is_deliverable {
log::debug!(