normalize email from

This commit is contained in:
Mateusz Gruszczyński
2026-07-27 18:24:42 +02:00
parent 3e4cb910c2
commit cc3b172e56
7 changed files with 57 additions and 14 deletions
+8
View File
@@ -11,10 +11,18 @@ use tokio::sync::{RwLock, broadcast};
const CHANNEL_CAPACITY: usize = 256;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum SmtpSecurity {
None,
StartTls,
Tls,
}
#[derive(Debug, Clone)]
pub struct SmtpConfig {
pub host: String,
pub port: u16,
pub security: SmtpSecurity,
pub username: String,
pub password: String,
pub from: String,