Struct lettre::smtp::SmtpTransportBuilder [] [src]

pub struct SmtpTransportBuilder { /* fields omitted */ }

Contains client configuration

Methods

impl SmtpTransportBuilder
[src]

Builder for the SMTP SmtpTransport

[src]

Creates a new SMTP client

Defaults are:

  • No connection reuse
  • No authentication
  • No SMTPUTF8 support
  • A 60 seconds timeout for smtp commands

[src]

Enable SMTPUTF8 if the server supports it

[src]

Set the name used during EHLO

[src]

Enable connection reuse

[src]

Set the client credentials

[src]

Set the authentication mechanism to use

[src]

Set the timeout duration

[src]

Build the SMTP client

It does not connect to the server, but only creates the SmtpTransport

Trait Implementations

Auto Trait Implementations