mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
24 lines
630 B
TypeScript
24 lines
630 B
TypeScript
import { sendMail } from "./sendMail";
|
|
import { NEXT_PUBLIC_WEBAPP_URL } from "@documenso/lib/constants";
|
|
import { transactionEmailTemplate } from "@documenso/lib/mail";
|
|
|
|
export const sendSigningDoneMail = async (
|
|
recipient: any,
|
|
document: any,
|
|
user: any
|
|
) => {
|
|
// todo check if recipient has an account
|
|
await sendMail(
|
|
user.email,
|
|
`Completed: "${document.title}"`,
|
|
transactionEmailTemplate(
|
|
`All recipients have signed "${document.title}"`,
|
|
document,
|
|
recipient,
|
|
`${NEXT_PUBLIC_WEBAPP_URL}/api/documents/${document.id}`,
|
|
`Download "${document.title}"`,
|
|
user
|
|
)
|
|
);
|
|
};
|