Struct lettre::sendmail::SendmailTransport
[−]
[src]
pub struct SendmailTransport { /* fields omitted */ }
Sends an email using the sendmail
command
Methods
impl SendmailTransport
[src]
pub fn new() -> SendmailTransport
[src]
Creates a new transport with the default /usr/sbin/sendmail
command
pub fn new_with_command<S: Into<String>>(command: S) -> SendmailTransport
[src]
Creates a new transport to the given sendmail command
Trait Implementations
impl Debug for SendmailTransport
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for SendmailTransport
[src]
fn default() -> SendmailTransport
[src]
Returns the "default value" for a type. Read more
impl<'a, T: Read + 'a> EmailTransport<'a, T, SendmailResult> for SendmailTransport
[src]
fn send<U: SendableEmail<'a, T> + 'a>(&mut self, email: &'a U) -> SendmailResult
[src]
Sends the email