Automatically remove outdated account creation requests
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user