Trait lettre::transport::EmailTransport
[−]
[src]
pub trait EmailTransport { fn send<T: SendableEmail>(&mut self, email: T) -> EmailResult; fn close(&mut self); }
Transport method for emails
Required Methods
fn send<T: SendableEmail>(&mut self, email: T) -> EmailResult
Sends the email
fn close(&mut self)
Close the transport explicitely
Implementors
impl EmailTransport for SmtpTransport
impl EmailTransport for StubEmailTransport
impl EmailTransport for FileEmailTransport