2022

  1. Announcing lettre 0.10

2021

  1. Announcing lettre 0.10.0-rc.1

Features

lettre is an email client for Rust programs allowing easily sending emails from Rust applications by providing:

lettre focuses on modern email client needs and does not intend to extensively implement email standards.

use lettre::{Message, SmtpTransport};

let email = Message::builder()
    .from("NoBody <[email protected]>".parse().unwrap())
    .reply_to("Yuin <[email protected]>".parse().unwrap())
    .to("Hei <[email protected]>".parse().unwrap())
    .subject("Happy new year")
    .body("Be happy!")
    .unwrap();

// Open a local connection on port 25 and send the email
let mailer = SmtpTransport::unencrypted_localhost();
assert!(mailer.send(&email).is_ok());