Files
documenso/packages/lib/mail/sendSignedMail.ts
Timur Ercan 48a8fce724 read status
2023-01-27 18:31:40 +01:00

12 lines
547 B
TypeScript

import { sendMail } from "./sendMail";
import { NEXT_PUBLIC_WEBAPP_URL } from "@documenso/lib/constants";
export const sendSignedMail = async (document: any, recipient: any) => {
// todo check if recipient has an account
await sendMail(
document.user.email,
`${recipient.email} signed ${document.title}`,
`Hi ${document.user.name}, ${recipient.email} has signed your document ${document.title}. Click <a href="${NEXT_PUBLIC_WEBAPP_URL}/document/${document.id}?token=${recipient.token}"> VIEW DOCUMENT</a> to view it now.`
);
};