diff --git a/apps/web/pages/api/documents/[id]/send.ts b/apps/web/pages/api/documents/[id]/send.ts index 455a8c740..42d22a5df 100644 --- a/apps/web/pages/api/documents/[id]/send.ts +++ b/apps/web/pages/api/documents/[id]/send.ts @@ -42,14 +42,13 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) { const recipients = prisma.recipient.findMany({ where: { documentId: +documentId, - // sendStatus: SendStatus.NOT_SENT, // TODO REDO AFTER DEBUG + sendStatus: SendStatus.NOT_SENT, // TODO REDO AFTER DEBUG }, }); // todo check if recipient has an account and show them in their inbox or something (await recipients).forEach(async (recipient) => { await sendSigningRequest(recipient, document); - await sendSignedMail(recipient, document); }); // todo way better error handling diff --git a/packages/lib/mail/sendSignedMail.ts b/packages/lib/mail/sendSignedMail.ts index 82fdb2aa1..7fca9a38d 100644 --- a/packages/lib/mail/sendSignedMail.ts +++ b/packages/lib/mail/sendSignedMail.ts @@ -14,10 +14,10 @@ export const sendSignedMail = async (recipient: any, document: any) => { ${document.User.name || recipient.email} has signed your document ${ document.title }. -
+
@@ -40,6 +40,10 @@ export const sendSignedMail = async (recipient: any, document: any) => {
${document.User.name} (${document.User.email}) has sent you a document to sign.
-
-
+
@@ -35,6 +35,10 @@ export const sendSigningRequest = async (recipient: any, document: any) => {
Contact us at hi@documenso.com