From 710ebb60318c2f1f8933334fc96a64493672f01e Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 28 Jan 2025 15:21:31 -0600 Subject: [PATCH] fixed contact form --- layouts/shortcodes/contact-form.html | 9 ++++++++- src/api/contact.rs | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/contact-form.html b/layouts/shortcodes/contact-form.html index 6b8c0b0..579520b 100644 --- a/layouts/shortcodes/contact-form.html +++ b/layouts/shortcodes/contact-form.html @@ -40,7 +40,14 @@
-
+ +>

Contact Form

diff --git a/src/api/contact.rs b/src/api/contact.rs index 06c8941..a7bb789 100644 --- a/src/api/contact.rs +++ b/src/api/contact.rs @@ -125,7 +125,7 @@ pub async fn contact_form(MultipartForm(mut form): MultipartForm) - Ok(_) => info!("Successfully sent email"), Err(e) => error!("There was an error sending the email: {e}"), } - HttpResponse::Ok().body("thankyou") + HttpResponse::Ok().body("Thank you! We will get back with you shortly!") } #[cfg(test)]