From f4c81f2f0785f91113bb0f737fb5aaf192be16f9 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Wed, 29 Jun 2022 07:57:38 +0200 Subject: [PATCH] =?UTF-8?q?fix(integration):=20=F0=9F=90=9B=20From=20name?= =?UTF-8?q?=20behavior?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/api/typebots/[typebotId]/integrations/email.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/viewer/pages/api/typebots/[typebotId]/integrations/email.ts b/apps/viewer/pages/api/typebots/[typebotId]/integrations/email.ts index ba7405503..2bdff9bda 100644 --- a/apps/viewer/pages/api/typebots/[typebotId]/integrations/email.ts +++ b/apps/viewer/pages/api/typebots/[typebotId]/integrations/email.ts @@ -105,7 +105,9 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => { } const transporter = createTransport(transportConfig) const email: Mail.Options = { - from: `"${replyToName ?? from.name}" <${from.email}>`, + from: `"${isEmpty(replyToName) ? from.name : replyToName}" <${ + from.email + }>`, cc, bcc, to: recipients,