From 21a7b0ade2da92f7b68a84de222a30280faaa073 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Fri, 6 Feb 2026 18:24:58 +0100 Subject: [PATCH] feat: Implement `replyTo` for contact form emails and refine success/error message layout. --- app/actions/contact.ts | 1 + components/RequestQuoteForm.tsx | 63 +++++++++++++++++++-------------- lib/mail/mailer.ts | 4 ++- 3 files changed, 40 insertions(+), 28 deletions(-) diff --git a/app/actions/contact.ts b/app/actions/contact.ts index 0b9956ba..b3979220 100644 --- a/app/actions/contact.ts +++ b/app/actions/contact.ts @@ -71,6 +71,7 @@ export async function sendContactFormAction(formData: FormData) { ); const notificationResult = await sendEmail({ + replyTo: email, subject: notificationSubject, html: notificationHtml, }); diff --git a/components/RequestQuoteForm.tsx b/components/RequestQuoteForm.tsx index 34a9d56b..04aef247 100644 --- a/components/RequestQuoteForm.tsx +++ b/components/RequestQuoteForm.tsx @@ -49,21 +49,28 @@ export default function RequestQuoteForm({ productName }: RequestQuoteFormProps) if (status === 'success') { return ( -
-
- - - +
+
+
+ + + +
-

+

{t('successTitle')}

-

+

{t('successDesc', { productName })}