Skip to content

Commit

Permalink
feat: change contact from and subject
Browse files Browse the repository at this point in the history
  • Loading branch information
zeldan committed Dec 28, 2024
1 parent 8b84c27 commit 7218c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ssr/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ pub async fn hire_us(data: HireUsRequest) -> Result<(), ServerFnError> {
.build::<Tokio1Executor>();

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

0 comments on commit 7218c54

Please sign in to comment.