Added possibility to set SMTP port.

This commit is contained in:
2024-02-16 11:22:34 +01:00
parent 2907aa8ba7
commit 2d8642cb2a
3 changed files with 10 additions and 0 deletions
+4
View File
@@ -65,6 +65,7 @@ pub struct Mailing {
from: String,
path: Option<String>,
server: Option<String>,
port: Option<u16>,
user: Option<String>,
password: Option<String>,
tls: Option<bool>
@@ -84,6 +85,9 @@ impl Mailing {
pub fn server(&self) -> &Option<String> {
&self.server
}
pub fn port(&self) -> Option<u16> {
self.port
}
pub fn user(&self) -> &Option<String> {
&self.user
}