testing attachments

main
Nickiel12 1 year ago
parent 919d7f4769
commit 24b29f2bbd

@ -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();

Loading…
Cancel
Save