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");