[−][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 - r2d2: Connection pool for SMTP transport
- log: Logging using the
log
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::transport::smtp::client::net::TlsParameters; |
pub use crate::transport::smtp::SmtpTransport; |
pub use crate::transport::smtp::Tls; |
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
Envelope | Simple email envelope representation |
Headers | A specialized map of typed headers. |
Mailbox | Email address with optional addressee name |
Mailboxes | List or email mailboxes |
Traits
Transport | Transport method for emails |