Skip to content

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

refactor: Default timeout to 12s

Amauryf48a3c769b63
diff --git a/core/src/util/input_output.rs b/core/src/util/input_output.rs
index 93ff7452..79ecc781 100644
--- a/core/src/util/input_output.rs
+++ b/core/src/util/input_output.rs
@@ -96,7 +96,7 @@ pub struct CheckEmailInput {
/// Add timeout for the SMTP verification step. Set to None if you don't
/// want to use a timeout.
///
- /// Defaults to 15s.
+ /// Defaults to 12s (more than 10s, but when run twice less than 30s).
pub smtp_timeout: Option<Duration>,
/// For Yahoo email addresses, use Yahoo's API instead of connecting
/// directly to their SMTP servers.
@@ -150,7 +150,7 @@ impl Default for CheckEmailInput {
proxy: None,
smtp_port: 25,
smtp_security: SmtpSecurity::default(),
- smtp_timeout: Some(Duration::from_secs(15)),
+ smtp_timeout: Some(Duration::from_secs(12)),
yahoo_use_api: true,
gmail_use_api: false,
microsoft365_use_api: false,