#[derive(Debug, Clone)]
pub struct MailConfig {
pub driver: String,
pub from_address: String,
pub from_name: String,
pub smtp_host: Option<String>,
pub smtp_port: u16,
pub smtp_username: Option<String>,
pub smtp_password: Option<String>,
pub smtp_encryption: String,
pub postmark_api_key: Option<String>,
pub resend_api_key: Option<String>,
}
impl Default for MailConfig {
fn default() -> Self {
Self {
driver: "log".into(),
from_address: "noreply@rok-app.com".into(),
from_name: "rok-app".into(),
smtp_host: None,
smtp_port: 587,
smtp_username: None,
smtp_password: None,
smtp_encryption: "starttls".into(),
postmark_api_key: None,
resend_api_key: None,
}
}
}