|
|
@ -303,8 +303,10 @@ make_config! {
|
|
|
|
smtp_host: String, true, option;
|
|
|
|
smtp_host: String, true, option;
|
|
|
|
/// Enable SSL
|
|
|
|
/// Enable SSL
|
|
|
|
smtp_ssl: bool, true, def, true;
|
|
|
|
smtp_ssl: bool, true, def, true;
|
|
|
|
|
|
|
|
/// Use explicit TLS |> Enabling this would force the use of an explicit TLS connection, instead of upgrading an insecure one with STARTTLS
|
|
|
|
|
|
|
|
smtp_explicit_tls: bool, true, def, false;
|
|
|
|
/// Port
|
|
|
|
/// Port
|
|
|
|
smtp_port: u16, true, auto, |c| if c.smtp_ssl {587} else {25};
|
|
|
|
smtp_port: u16, true, auto, |c| if c.smtp_explicit_tls {465} else if c.smtp_ssl {587} else {25};
|
|
|
|
/// From Address
|
|
|
|
/// From Address
|
|
|
|
smtp_from: String, true, def, String::new();
|
|
|
|
smtp_from: String, true, def, String::new();
|
|
|
|
/// From Name
|
|
|
|
/// From Name
|
|
|
|