fix "from" email
This commit is contained in:
parent
fc916670c5
commit
e6917b13fb
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ fn is_alert_needed(
|
|||
async fn send_email(email: &str, repo: &str, inactive: Duration) -> eyre::Result<()> {
|
||||
use lettre::{AsyncSendmailTransport, AsyncTransport, Message};
|
||||
let email = Message::builder()
|
||||
.from("infracoll <infracoll>".parse().unwrap())
|
||||
.from("infracoll <root@infracoll>".parse().unwrap())
|
||||
.to(email.parse()?)
|
||||
.subject(format!("restic-alarm: inactive repository {}", repo))
|
||||
.body(format!(
|
||||
|
|
Loading…
Reference in a new issue