Lettre is a mailer written in Rust. It provides a simple email builder and several transports.
This mailer contains the available transports for your emails.
The file transport writes the emails to the given directory. The name of the file will be
The sendmail transport sends the email using the local sendmail command.
The SMTP transport sends emails using the SMTP protocol.
The stub transport only logs message envelope and drops the content. It can be useful for testing purposes.
Simple email envelope representation
Sendable email structure
Transport method for emails