mirror of
https://github.com/hanzo-apps/dataroom.git
synced 2026-10-30 14:47:36 +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
23 lines
646 B
TypeScript
23 lines
646 B
TypeScript
import { sendEmail } from "@/lib/resend";
|
|
|
|
import WelcomeEmail from "@/components/emails/welcome";
|
|
|
|
import { CreateUserEmailProps } from "../types";
|
|
|
|
export const sendWelcomeEmail = async (params: CreateUserEmailProps) => {
|
|
const { name, email } = params.user;
|
|
const emailTemplate = WelcomeEmail({ name });
|
|
try {
|
|
await sendEmail({
|
|
to: email as string,
|
|
marketing: true,
|
|
subject: "Welcome to Hanzo Dataroom!",
|
|
react: emailTemplate,
|
|
test: process.env.NODE_ENV === "development",
|
|
unsubscribeUrl: `${process.env.NEXT_PUBLIC_BASE_URL}/account/general`,
|
|
});
|
|
} catch (e) {
|
|
console.error(e);
|
|
}
|
|
};
|