From 1159a79410607bddb504121d856c573b8e76e37d Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Thu, 17 Jul 2025 13:20:27 -0700 Subject: [PATCH] fix emails --- server/emails/sendEmail.ts | 2 +- .../templates/components/ButtonLink.tsx | 2 +- server/emails/templates/components/Email.tsx | 29 +++++++++++-------- 3 files changed, 19 insertions(+), 14 deletions(-) diff --git a/server/emails/sendEmail.ts b/server/emails/sendEmail.ts index 4c5586f1..9b99d18e 100644 --- a/server/emails/sendEmail.ts +++ b/server/emails/sendEmail.ts @@ -25,7 +25,7 @@ export async function sendEmail( const emailHtml = await render(template); - const appName = "Fossorial - Pangolin"; + const appName = "Pangolin"; await emailClient.sendMail({ from: { diff --git a/server/emails/templates/components/ButtonLink.tsx b/server/emails/templates/components/ButtonLink.tsx index 9086bd47..618fed15 100644 --- a/server/emails/templates/components/ButtonLink.tsx +++ b/server/emails/templates/components/ButtonLink.tsx @@ -12,7 +12,7 @@ export default function ButtonLink({ return ( - {children} -

- For any questions or support, please contact us at: -
- support@fossorial.io -

-

- © {new Date().getFullYear()} Fossorial, Inc. All rights - reserved. -

- + <> + {build === "saas" && ( +
+ {children} +

+ For any questions or support, please contact us at: +
+ support@fossorial.io +

+

+ © {new Date().getFullYear()} Fossorial, Inc. All + rights reserved. +

+
+ )} + ); }