normalize email from
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user