|
|
|
@ -195,8 +195,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
|
|
|
|
|
|
|
|
if do_email_summary {
|
|
|
|
|
debug!("Send email selected");
|
|
|
|
|
reset_email_checkbox(&cfg);
|
|
|
|
|
send_email_summary(&cfg, body_content);
|
|
|
|
|
//reset_email_checkbox(&cfg);
|
|
|
|
|
//send_email_summary(&cfg, body_content);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Ok(())
|
|
|
|
@ -381,7 +381,7 @@ fn send_email_summary(config: &Config, body_content: Vec<String>) {
|
|
|
|
|
|
|
|
|
|
match mailer.send(&email) {
|
|
|
|
|
Ok(val) => debug!("email sent: {:?}", val),
|
|
|
|
|
Err(e) => debug!("Couldn't send email {}", e)
|
|
|
|
|
Err(e) => error!("Couldn't send email {}", e)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|