diff --git a/apps/web/src/app/send/page.tsx b/apps/web/src/app/send/page.tsx index 549f47ca0..bf6f12205 100644 --- a/apps/web/src/app/send/page.tsx +++ b/apps/web/src/app/send/page.tsx @@ -14,7 +14,13 @@ export default function Send() { onClick={async () => { console.log('clicked'); - await sendMail({ email: 'duncan@documenso.com' }); + await sendMail({ + email: 'duncan@documenso.com', + type: 'invite', + documentName: 'Documsenso Salary Invoice.pdf', + name: 'Mark Cuban', + firstName: 'Mark', + }); alert('sent'); }} diff --git a/packages/lib/mail/template.tsx b/packages/lib/mail/template.tsx index 24f2fc2ab..f2b4054c4 100644 --- a/packages/lib/mail/template.tsx +++ b/packages/lib/mail/template.tsx @@ -90,12 +90,12 @@ export const DocumensoEmail = ({ )} - + {type === 'invite' ? `${name} has invited you to sign “${documentName}”` : `“${documentName}” was signed by ${name}`} - + {type === 'invite' ? 'Continue by signing the document.' : 'Continue by downloading or reviewing the document.'} @@ -105,7 +105,7 @@ export const DocumensoEmail = ({