Merge pull request #430 from documenso/feat/update-email-templates

feat: update email templates
This commit is contained in:
Lucas Smith
2023-09-28 20:58:22 +10:00
committed by GitHub
15 changed files with 137 additions and 112 deletions

View File

@ -177,9 +177,7 @@ export const createSinglePlayerDocument = async (
},
);
// Todo: Handle `downloadLink`
const template = createElement(DocumentSelfSignedEmailTemplate, {
downloadLink: `${process.env.NEXT_PUBLIC_MARKETING_URL}/single-player-mode/${documentToken}`,
documentName: documentName,
assetBaseUrl: process.env.NEXT_PUBLIC_WEBAPP_URL || 'http://localhost:3000',
});
@ -197,6 +195,7 @@ export const createSinglePlayerDocument = async (
subject: 'Document signed',
html: render(template),
text: render(template, { plainText: true }),
attachments: [{ content: Buffer.from(pdfBytes), filename: documentName }],
});
return documentToken;

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B