Added setting for accept invalid certificate on SMTP server.

This commit is contained in:
2024-02-16 12:13:50 +01:00
parent 2d8642cb2a
commit 65e80640d5
3 changed files with 35 additions and 5 deletions
+5 -1
View File
@@ -68,7 +68,8 @@ pub struct Mailing {
port: Option<u16>,
user: Option<String>,
password: Option<String>,
tls: Option<bool>
tls: Option<bool>,
accept_all_certs: Option<bool>
}
#[cfg(feature = "ssr")]
@@ -97,6 +98,9 @@ impl Mailing {
pub fn tls(&self) -> Option<bool> {
self.tls
}
pub fn accept_all_certs(&self) -> Option<bool> {
self.accept_all_certs
}
}