From 7218c54ec57350abf7c6919ec1b99bbc088ca9e4 Mon Sep 17 00:00:00 2001 From: zeldan Date: Sat, 28 Dec 2024 15:58:05 +0100 Subject: [PATCH] feat: change contact from and subject --- src/ssr/api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssr/api.rs b/src/ssr/api.rs index 4bffe49..df2f47b 100644 --- a/src/ssr/api.rs +++ b/src/ssr/api.rs @@ -144,9 +144,9 @@ pub async fn hire_us(data: HireUsRequest) -> Result<(), ServerFnError> { .build::(); let email = Message::builder() - .from(data.email.parse()?) + .from(env::var("SMTP_USER")?.parse()?) .to(env::var("SMTP_USER")?.parse()?) - .subject(data.subject) + .subject(format!("{} - {}", data.email, data.subject)) .header(ContentType::TEXT_HTML) .body(data.message) .expect("failed to build email");