Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

507 B
Raw Blame
import DeletedDomainEmail from "@/components/emails/deleted-domain";

import { sendEmail } from "@/lib/resend";

export const sendDeletedDomainEmail = async (email: string, domain: string) => {
  const emailTemplate = DeletedDomainEmail({ domain });
  try {
    await sendEmail({
      to: email,
      subject: `Your domain ${domain} has been deleted`,
      react: emailTemplate,
      test: process.env.NODE_ENV === "development",
      system: true,
    });
  } catch (e) {
    console.error(e);
  }
};