send sign request, sign status

This commit is contained in:
Timur Ercan
2023-01-27 18:15:41 +01:00
parent 2ebb68ca7a
commit 59f5297dd7
7 changed files with 68 additions and 24 deletions

View File

@ -1,9 +1,8 @@
import { sendMail } from "./sendMail";
export const sendSigningRequestMail = async (recipient: any, document: any) => {
sendMail(
await sendMail(
recipient.email,
`Please sign ${document.title}`,
`${document.user.name} has sent you a document to sign. Click <b><a href="https">SIGN DOCUMENT</a></b> to sign it now.`
`${document.User.name} has sent you a document to sign. Click <b><a href="${process.env.NEXT_PUBLIC_WEBAPP_URL}/documents/${document.id}/sign">SIGN DOCUMENT</a></b> to sign it now.`
);
};