server: add option to use insecure SMTP connection

This commit is contained in:
Igor Rzegocki
2023-01-19 11:30:25 +01:00
committed by GitHub
parent 9018e6fa34
commit d722be8896
4 changed files with 19 additions and 6 deletions

View File

@@ -266,6 +266,9 @@ impl ConfigOverrider for SmtpOpts {
if let Some(password) = &self.smtp_password {
config.smtp_options.password = SecUtf8::from(password.clone());
}
if let Some(smtp_encryption) = &self.smtp_encryption {
config.smtp_options.smtp_encryption = smtp_encryption.clone();
}
if let Some(tls_required) = self.smtp_tls_required {
config.smtp_options.tls_required = Some(tls_required);
}