# Sendmail transport :: Lettre site
Documentation for the Lettre mailer in Rust
Author: Alexis Mousset

Edit this page

# Sendmail transport

The sendmail transport sends the email using the local sendmail command.

    extern crate lettre;

    use lettre::sendmail::SendmailTransport;
    use lettre::{SimpleSendableEmail, EmailTransport};

    fn main() {
        let email = SimpleSendableEmail::new(
                        "user@localhost".to_string(),
                        &["root@localhost".to_string()],
                        "message_id".to_string(),
                        "Hello world".to_string(),
                    ).unwrap();

        let mut sender = SendmailTransport::new();
        let result = sender.send(&email);
        assert!(result.is_ok());
    }