sendmail 2.0.0

Rust sending emails via sendmail. Works nicely with Iron Framework using form Posts.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate sendmail;
use sendmail::email;

fn main() {

    // Configure email body and header
    email::send(
        // From Address
        "test@localhost",
        // To Address
        &["root@localhost"],
        // Subject
        "Subject - Hello World!",
        // Body
        "<html><body><h1>I am the body. Hello Wolrd!<br/><br/>And I accept html.</h1></body></html>"
    ).unwrap();
}