[][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.40 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
  • 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::header;
pub use crate::message::EmailFormat;
pub use crate::message::Message;
pub use crate::transport::file::FileTransport;
pub use crate::transport::sendmail::SendmailTransport;
pub use crate::address::Address;
pub use crate::transport::stub::StubTransport;

Modules

address

Representation of an email address

error
message

Provides a strongly typed way to build emails

transport

Sending Messages

Structs

AsyncSmtpTransport
Envelope

Simple email envelope representation

Headers

A specialized map of typed headers.

Mailbox

Email address with optional addressee name

Mailboxes

List or email mailboxes

SmtpTransport
Tokio02Connector

Traits

AsyncStd1Transport

async-std 1.x based Transport method for emails

Tokio02Transport

tokio 0.2.x based Transport method for emails

Transport

Blocking Transport method for emails