Automatically remove outdated account creation requests

This commit is contained in:
2023-05-31 11:06:58 +02:00
parent 62a52b385e
commit 7f8e41b618
4 changed files with 26 additions and 3 deletions

View File

@ -8,7 +8,7 @@ pub async fn send_mail<D: Display>(to: &str, subject: &str, body: D) -> anyhow::
let conf = AppConfig::get();
let email = Message::builder()
.from(conf.mail_sender.parse()?)
.from(format!("GeneIT <{}>", conf.mail_sender).parse()?)
.to(to.parse()?)
.subject(subject)
.header(ContentType::TEXT_PLAIN)