Files
dataroom/lib/emails/send-upgrade-month-checkin.ts
zeekay 130e86ef81 Rebrand from Papermark to Hanzo Dataroom
- Replace all Papermark branding with Hanzo Dataroom
- Update metadata, titles, descriptions, OG tags
- Update email templates footer and branding
- Replace papermark.io/com URLs with dataroom.hanzo.ai
- Update powered-by component
- Update x-powered-by header
- Update legal references to Hanzo AI, Inc.
- Update social handles to @hanzoai
- Update README, CLA, LICENSE, SECURITY docs
2026-03-01 19:02:19 -08:00

30 lines
784 B
TypeScript

import { sendEmail } from "@/lib/resend";
import UpgradeOneMonthCheckinEmail from "@/components/emails/upgrade-one-month-checkin";
import { CreateUserEmailProps } from "../types";
export const sendUpgradeOneMonthCheckinEmail = async (
params: CreateUserEmailProps,
) => {
const { name, email } = params.user;
// Get the first name from the full name
const firstName = name ? name.split(" ")[0] : null;
const emailTemplate = UpgradeOneMonthCheckinEmail({
name: firstName,
});
try {
await sendEmail({
to: email as string,
subject: "Check-in from Hanzo Dataroom",
from: "Marc Seitz <[email protected]>",
react: emailTemplate,
test: process.env.NODE_ENV === "development",
});
} catch (e) {
console.error(e);
}
};