Fix: example does not compile (#592)

A missing simple string conversion prevented the example code from compiling.
This commit is contained in:
Jupp56
2021-03-31 12:14:49 +02:00
committed by GitHub
parent 2002a9d75a
commit b10f6ff8de
+1 -1
View File
@@ -78,7 +78,7 @@ let email = Message::builder()
.reply_to("Yuin <yuin@domain.tld>".parse().unwrap())
.to("Hei <hei@domain.tld>".parse().unwrap())
.subject("Happy new year")
.body("Be happy!")
.body(String::from("Be happy!"))
.unwrap();
let creds = Credentials::new("smtp_username".to_string(), "smtp_password".to_string());