testing attachments
This commit is contained in:
parent
919d7f4769
commit
24b29f2bbd
1 changed files with 7 additions and 5 deletions
|
@ -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(
|
.singlepart(attachment)
|
||||||
MultiPart::mixed()
|
.unwrap();
|
||||||
.singlepart(SinglePart::plain("Hello World".to_string()))
|
// .multipart(
|
||||||
.singlepart(attachment)
|
// MultiPart::mixed()
|
||||||
).unwrap();
|
// .singlepart(SinglePart::plain("Hello World".to_string()))
|
||||||
|
// .singlepart(attachment)
|
||||||
|
// ).unwrap();
|
||||||
|
|
||||||
|
|
||||||
let mailer = SendmailTransport::new();
|
let mailer = SendmailTransport::new();
|
||||||
|
|
Loading…
Reference in a new issue