[][src]Trait lettre::transport::EmailTransport

pub trait EmailTransport<U> {
    fn send<T: SendableEmail>(&mut self, email: T) -> U;
fn close(&mut self); }

Transport method for emails

Required methods

fn send<T: SendableEmail>(&mut self, email: T) -> U

Sends the email

fn close(&mut self)

Close the transport explicitly

Loading content...

Implementors

impl EmailTransport<Result<(), Error>> for FileEmailTransport[src]

impl EmailTransport<Result<(), Error>> for StubEmailTransport[src]

impl EmailTransport<Result<Response, Error>> for SmtpTransport[src]

fn send<T: SendableEmail>(&mut self, email: T) -> SmtpResult[src]

Sends an email

fn close(&mut self)[src]

Closes the inner connection

Loading content...