Files
dataroom/lib/emails/send-custom-domain-setup.ts
zeekay 89004ff9a7 rebrand: Papermark → Hanzo Dataroom across user-facing surfaces
108 files: README, marketing copy, page titles, meta tags, footer
text, email templates, .env.example, UI strings. URLs swapped
from papermark.com/papermark.io to dataroom.hanzo.ai.

Internal identifiers left intact per repo policy: localStorage
keys (papermark.email/papermark.name/last_papermark_login —
changing them logs users out), type field names
(papermarkUserId), internal helper symbols (PAPERMARK_HEADERS,
PapermarkSparkle component, isPapermarkUrl helper),
internal-only filenames. LLM.md retains 'Upstream: Papermark'
attribution line. Per-locale .po translations regenerate from
source on the next lingui-extract CI run.

DB migrations untouched (append-only history; rewriting them
breaks installed schemas). LICENSE stays AGPL-3.0.
2026-06-07 12:23:40 -07:00

27 lines
661 B
TypeScript

import CustomDomainSetupEmail from "@/components/emails/custom-domain-setup";
import { sendEmail } from "@/lib/resend";
export const sendCustomDomainSetupEmail = async (
email: string,
name?: string,
currentPlan?: string,
hasAccess?: boolean,
) => {
const emailTemplate = CustomDomainSetupEmail({
name: name || "there",
currentPlan: currentPlan || "Free",
hasAccess: hasAccess || false,
});
try {
await sendEmail({
to: email,
subject: "Your Hanzo Dataroom custom domain set up",
react: emailTemplate,
test: process.env.NODE_ENV === "development",
});
} catch (e) {
console.error(e);
}
};