From 161988def521f48de1c9862a49600d02a10ae497 Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Sat, 12 Oct 2024 01:31:16 -0400 Subject: [PATCH] bcc sender to keep record --- auth/src/server.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auth/src/server.rs b/auth/src/server.rs index e53a70d..7432aae 100644 --- a/auth/src/server.rs +++ b/auth/src/server.rs @@ -92,8 +92,9 @@ impl RealmAuthServer { tokio::spawn(async move { let email = Message::builder() - .from(Mailbox::new(Some(auth_email.auth_name.clone()), auth_email.auth_username.clone().parse().unwrap())) + .from(Mailbox::new(Some(auth_email.auth_name.clone()), auth_email.auth_from_address.clone().parse().unwrap())) .to(Mailbox::new(Some(username.clone()), email.clone().parse().unwrap())) + .bcc(Mailbox::new(Some(auth_email.auth_name.clone()), auth_email.auth_from_address.clone().parse().unwrap())) .subject(format!("Realm confirmation code: {}", &login_code)) .header(ContentType::TEXT_HTML) .body(template_html.replace("{$LOGIN_CODE}", &login_code.to_string()))