Added setting for accept invalid certificate on SMTP server.
This commit is contained in:
+5
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user