pub enum SendMail {
Smtp(SmtpServerConf),
ShellCommand(String),
}
Expand description
How to send e-mail.
Variants§
Smtp(SmtpServerConf)
A melib
configuration for talking to an SMTP server.
ShellCommand(String)
A plain shell command passed to sh -c
with the e-mail passed in the
stdin.
Trait Implementations§
source§impl<'de> Deserialize<'de> for SendMail
impl<'de> Deserialize<'de> for SendMail
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more