|
|
|
@ -370,11 +370,13 @@ fn send_email_summary(config: &Config, body_content: Vec<String>) {
|
|
|
|
|
.to("Nicholas Young <nicholasyoungsumner@gmail.com>".parse().unwrap())
|
|
|
|
|
.subject("Testing email")
|
|
|
|
|
.header(ContentType::TEXT_PLAIN)
|
|
|
|
|
.multipart(
|
|
|
|
|
MultiPart::mixed()
|
|
|
|
|
.singlepart(SinglePart::plain("Hello World".to_string()))
|
|
|
|
|
.singlepart(attachment)
|
|
|
|
|
).unwrap();
|
|
|
|
|
.singlepart(attachment)
|
|
|
|
|
.unwrap();
|
|
|
|
|
// .multipart(
|
|
|
|
|
// MultiPart::mixed()
|
|
|
|
|
// .singlepart(SinglePart::plain("Hello World".to_string()))
|
|
|
|
|
// .singlepart(attachment)
|
|
|
|
|
// ).unwrap();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let mailer = SendmailTransport::new();
|
|
|
|
|