mirror of
https://github.com/hanzoai/dataroom.git
synced 2026-10-30 18:41:07 +00:00
- 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
29 lines
640 B
TypeScript
29 lines
640 B
TypeScript
import { sendEmail } from "@/lib/resend";
|
|
|
|
import DataroomTrialEnd from "@/components/emails/dataroom-trial-end";
|
|
|
|
export const sendDataroomTrialEndEmail = async (params: {
|
|
email: string;
|
|
name: string;
|
|
}) => {
|
|
const { email, name } = params;
|
|
|
|
let emailTemplate;
|
|
let subject;
|
|
|
|
emailTemplate = DataroomTrialEnd({ name });
|
|
subject = "Your Data Room plan trial has ended";
|
|
|
|
try {
|
|
await sendEmail({
|
|
to: email as string,
|
|
from: "Marc Seitz <[email protected]>",
|
|
subject,
|
|
react: emailTemplate,
|
|
test: process.env.NODE_ENV === "development",
|
|
});
|
|
} catch (e) {
|
|
console.error(e);
|
|
}
|
|
};
|