diff --git a/src/sendmail/wizard.rs b/src/sendmail/wizard.rs index d66a983..edb366f 100644 --- a/src/sendmail/wizard.rs +++ b/src/sendmail/wizard.rs @@ -11,7 +11,6 @@ pub(crate) fn configure() -> Result { .default(String::from("/usr/bin/msmtp")) .interact()? .into(), - // ..Default::default() // in case any other field was added }; Ok(BackendConfig::Sendmail(config)) diff --git a/src/smtp/wizard.rs b/src/smtp/wizard.rs index 7a5f2ee..f6ea078 100644 --- a/src/smtp/wizard.rs +++ b/src/smtp/wizard.rs @@ -42,7 +42,7 @@ pub(crate) async fn configure( let autoconfig_oauth2 = autoconfig.and_then(|c| c.oauth2()); let autoconfig_server = autoconfig.and_then(|c| { c.email_provider() - .incoming_servers() + .outgoing_servers() .into_iter() .find(|server| matches!(server.server_type(), ServerType::Smtp)) });