Merge branch 'main' into authentik

This commit is contained in:
nitnelave 2023-02-14 18:15:31 +01:00 committed by GitHub
commit 314d4d0d33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,11 @@ async fn send_email(to: Mailbox, subject: &str, body: String, options: &MailOpti
.reply_to(reply_to)
.to(to)
.subject(subject)
.body(body)?;
.singlepart(
lettre::message::SinglePart::builder()
.header(lettre::message::header::ContentType::TEXT_PLAIN)
.body(body),
)?;
let creds = Credentials::new(
options.user.clone(),
options.password.unsecure().to_string(),