extern crate emailmessage; use emailmessage::Message; fn main() { let m: Message<&str> = Message::builder() .from("NoBody ".parse().unwrap()) .reply_to("Yuin ".parse().unwrap()) .to("Hei ".parse().unwrap()) .subject("Happy new year") .body("Be happy!"); println!("{}", m); }