Struct lettre::SendmailTransport
source · pub struct SendmailTransport { /* private fields */ }
Available on crate feature
sendmail-transport
only.Expand description
Sends emails using the sendmail
command
Implementations§
source§impl SendmailTransport
impl SendmailTransport
sourcepub fn new() -> SendmailTransport
pub fn new() -> SendmailTransport
Creates a new transport with the sendmail
command
Note: This uses the sendmail
command in the current PATH
. To use another command,
use SendmailTransport::new_with_command.
sourcepub fn new_with_command<S: Into<OsString>>(command: S) -> SendmailTransport
pub fn new_with_command<S: Into<OsString>>(command: S) -> SendmailTransport
Creates a new transport to the given sendmail command
Trait Implementations§
source§impl Clone for SendmailTransport
impl Clone for SendmailTransport
source§fn clone(&self) -> SendmailTransport
fn clone(&self) -> SendmailTransport
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SendmailTransport
impl Debug for SendmailTransport
source§impl Default for SendmailTransport
impl Default for SendmailTransport
source§impl<'de> Deserialize<'de> for SendmailTransport
impl<'de> Deserialize<'de> for SendmailTransport
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