From 24b29f2bbdc074033ad41949fb4907909de11310 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Mon, 11 Sep 2023 16:37:16 -0700 Subject: [PATCH] testing attachments --- time_tracker/src/main.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/time_tracker/src/main.rs b/time_tracker/src/main.rs index 7ca3091..696e4d9 100644 --- a/time_tracker/src/main.rs +++ b/time_tracker/src/main.rs @@ -370,11 +370,13 @@ fn send_email_summary(config: &Config, body_content: Vec) { .to("Nicholas Young ".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();