small fix

This commit is contained in:
Armaël Guéneau 2024-04-15 18:16:17 +02:00
parent 86d5cde573
commit 84adeddec6

View file

@ -133,7 +133,7 @@ async fn send_email(
) -> eyre::Result<()> {
use lettre::{Message, Transport};
let email = Message::builder()
.from("infracoll <root@infracoll>".parse().unwrap())
.from(smtp.username.parse().unwrap())
.to(email.parse()?)
.subject(format!(
"restic-alarm: inactive repository {}",