From 51c80cb9d5805cc238efd5f778ebba34e37e849e Mon Sep 17 00:00:00 2001 From: Matthias Nannt Date: Wed, 8 Feb 2023 12:04:45 +0100 Subject: [PATCH] fix reply-to header in email --- apps/demo/components/PmfButton.tsx | 2 +- apps/web/src/lib/email.ts | 4 ++-- packages/pmfWidget/src/form-html.ts | 2 +- packages/pmfWidget/src/form.html | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/demo/components/PmfButton.tsx b/apps/demo/components/PmfButton.tsx index 1398d5a1aa..fb40c8b937 100644 --- a/apps/demo/components/PmfButton.tsx +++ b/apps/demo/components/PmfButton.tsx @@ -76,7 +76,7 @@ export default function PmfButton() { } setIsOpen(!isOpen); }}> - {isOpen ? "Close" : "Feedback"} + {isOpen ? "Close" : "Hey 👋"}
{ await sendEmail({ to: email, @@ -99,7 +99,7 @@ export const sendSubmissionEmail = async ( : event === "finished" ? `${formLabel} submission finished` : `${formLabel} submission update`, - replyTo: submission.customer?.email || process.env.MAIL_FROM, + replyTo: submission.customerEmail || process.env.MAIL_FROM, html: `${ event === "created" ? `Hey, someone just filled out your form "${formLabel}" in Formbricks.` diff --git a/packages/pmfWidget/src/form-html.ts b/packages/pmfWidget/src/form-html.ts index 5c91356d31..c3e71e9e5e 100644 --- a/packages/pmfWidget/src/form-html.ts +++ b/packages/pmfWidget/src/form-html.ts @@ -1 +1 @@ -export const formHtml = `

How disappointed would you be if you could no longer use our service?

Disappointment options

What is the main benefit you receive from our service?

What is your job title?

Job title options

How can we improve our service for you?

What type of people would benefit most from using our service?

❤️

Thank you!

Your feedback helps us improve our service for you.

`; \ No newline at end of file +export const formHtml = `

How disappointed would you be if you could no longer use our service?

Disappointment options

What is the main benefit you receive from our service?

What is your job title?

Job title options

How can we improve our service for you?

What type of people would benefit most from using our service?

❤️

Thank you!

Your feedback helps us improve our service for you.

`; \ No newline at end of file diff --git a/packages/pmfWidget/src/form.html b/packages/pmfWidget/src/form.html index aa26f3918b..b566c62d61 100644 --- a/packages/pmfWidget/src/form.html +++ b/packages/pmfWidget/src/form.html @@ -74,7 +74,7 @@ name="formbricksPmf-2-1" type="radio" class="formbricks-radio-input" /> - +
- +
- +
- +