Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Use dynamic email subject in preview text

Marcus Farrell310835aef2e8
diff --git a/packages/email/src/templates/program-invite.tsx b/packages/email/src/templates/program-invite.tsx
index a78d5f93f3..7eb1ed9307 100644
--- a/packages/email/src/templates/program-invite.tsx
+++ b/packages/email/src/templates/program-invite.tsx
@@ -242,7 +242,7 @@ export default function ProgramInvite({
return (
<Html>
<Head />
- <Preview>Sign up for {program.name}</Preview>
+ <Preview>{emailSubject}</Preview>
<Tailwind config={tailwindConfig}>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-8 max-w-[600px] px-8 py-8">