testing attachments

This commit is contained in:
Nickiel12 2023-09-11 16:37:16 -07:00
parent 919d7f4769
commit 24b29f2bbd

View file

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