Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
import HundredViewsCongratsEmail from "@/components/emails/hundred-views-congrats";
import { sendEmail } from "@/lib/resend";
import { CreateUserEmailProps } from "../types";
export const sendHundredViewsCongratsEmail = async (params: CreateUserEmailProps) => {
const { name, email } = params.user;
const emailTemplate = HundredViewsCongratsEmail({ name });
try {
await sendEmail({
to: email as string,
subject: `100 views on Papermark. Awesome, ${name}`,
react: emailTemplate,
test: process.env.NODE_ENV === "development",
});
} catch (e) {
console.error(e);
}
};