Struct lettre::smtp::SmtpTransport [−][src]
pub struct SmtpTransport { /* fields omitted */ }
Expand description
Structure that implements the high level SMTP client
Implementations
impl<'a> SmtpTransport
[src]
impl<'a> SmtpTransport
[src]pub fn new(builder: SmtpClient) -> SmtpTransport
[src]
pub fn new(builder: SmtpClient) -> SmtpTransport
[src]Creates a new SMTP client
It does not connect to the server, but only creates the SmtpTransport
Trait Implementations
impl<'a> Transport<'a> for SmtpTransport
[src]
impl<'a> Transport<'a> for SmtpTransport
[src]fn send(&mut self, email: SendableEmail) -> SmtpResult
[src]
fn send(&mut self, email: SendableEmail) -> SmtpResult
[src]Sends an email
type Result = SmtpResult
type Result = SmtpResult
Result type for the transport