[][src]Crate lettre

Lettre is an email library that allows creating and sending messages. It provides:

  • An easy to use email builder
  • Pluggable email transports
  • Unicode support
  • Secure defaults

Lettre requires Rust 1.45 or newer.

Optional features

  • builder: Message builder
  • file-transport: Transport that write messages into a file
  • smtp-transport: Transport over SMTP
  • sendmail-transport: Transport over SMTP
  • rustls-tls: TLS support with the rustls crate
  • native-tls: TLS support with the native-tls crate
  • tokio02: Allow to asyncronously send emails using tokio 0.2.x
  • tokio02-rustls-tls: Async TLS support with the rustls crate using tokio 0.2
  • tokio02-native-tls: Async TLS support with the native-tls crate using tokio 0.2
  • tokio03: Allow to asyncronously send emails using tokio 0.3.x
  • tokio03-rustls-tls: Async TLS support with the rustls crate using tokio 0.3
  • tokio03-native-tls: Async TLS support with the native-tls crate using tokio 0.3
  • async-std1: Allow to asyncronously send emails using async-std 1.x (SMTP isn't supported yet)
  • r2d2: Connection pool for SMTP transport
  • tracing: Logging using the tracing crate
  • serde: Serialization/Deserialization of entities
  • hostname: Ability to try to use actual hostname in SMTP transaction

Re-exports

pub use crate::message::Message;
pub use crate::transport::file::FileTransport;
pub use crate::transport::sendmail::SendmailTransport;

Modules

address
error
messagebuilder

Provides a strongly typed way to build emails

transport

Sending Messages

Structs

Address

Represents an email address with a user and a domain name.

AsyncSmtpTransport
SmtpTransport
Tokio02Connectortokio02
Tokio03Connectortokio03

Traits

AsyncStd1Transportasync-std1

async-std 1.x based Transport method for emails

Tokio02Transporttokio02

tokio 0.2.x based Transport method for emails

Tokio03Transporttokio03

tokio 0.3.x based Transport method for emails

Transport

Blocking Transport method for emails