From 76fee091f6f304c6c7ab9f8e8805a69a184c1d9b Mon Sep 17 00:00:00 2001 From: andrew-opensignlabs Date: Thu, 5 Jun 2025 19:12:54 +0000 Subject: [PATCH] Merge pull request #752 from OpenSignLabs/html_request_email --- apps/OpenSign/src/pages/PlaceHolderSign.jsx | 2 +- apps/OpenSign/src/pages/Preferences.jsx | 2 +- apps/OpenSign/src/primitives/GetReportDisplay.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/OpenSign/src/pages/PlaceHolderSign.jsx b/apps/OpenSign/src/pages/PlaceHolderSign.jsx index eb9decf52..cf5365886 100644 --- a/apps/OpenSign/src/pages/PlaceHolderSign.jsx +++ b/apps/OpenSign/src/pages/PlaceHolderSign.jsx @@ -193,7 +193,7 @@ function PlaceHolderSign() { ); if (user) { try { - const defaultRequestBody = `

Hi {{receiver_name}},


We hope this email finds you well. {{sender_name}} has requested you to review and sign {{document_title}}.

Your signature is crucial to proceed with the next steps as it signifies your agreement and authorization.


{{signing_url}}


If you have any questions or need further clarification regarding the document or the signing process, please contact the sender.


Thanks

Team ${appName}


`; + const defaultRequestBody = `

Hi {{receiver_name}},


We hope this email finds you well. {{sender_name}} has requested you to review and sign {{document_title}}.

Your signature is crucial to proceed with the next steps as it signifies your agreement and authorization.


Sign here



If you have any questions or need further clarification regarding the document or the signing process, please contact the sender.


Thanks

Team ${appName}


`; const defaultSubject = `{{sender_name}} has requested you to sign {{document_title}}`; setDefaultBody(defaultRequestBody); setDefaultSubject(defaultSubject); diff --git a/apps/OpenSign/src/pages/Preferences.jsx b/apps/OpenSign/src/pages/Preferences.jsx index 6f4c1c385..85179c40c 100644 --- a/apps/OpenSign/src/pages/Preferences.jsx +++ b/apps/OpenSign/src/pages/Preferences.jsx @@ -218,7 +218,7 @@ const Preferences = () => { setIsLoader(true); const updateRes = tenantRes; setTenantId(updateRes?.objectId); - const defaultRequestBody = `

Hi {{receiver_name}},


We hope this email finds you well. {{sender_name}} has requested you to review and sign {{document_title}}.

Your signature is crucial to proceed with the next steps as it signifies your agreement and authorization.


{{signing_url}}


If you have any questions or need further clarification regarding the document or the signing process, please contact the sender.


Thanks

Team ${appName}


`; + const defaultRequestBody = `

Hi {{receiver_name}},


We hope this email finds you well. {{sender_name}} has requested you to review and sign {{document_title}}.

Your signature is crucial to proceed with the next steps as it signifies your agreement and authorization.


Sign here



If you have any questions or need further clarification regarding the document or the signing process, please contact the sender.


Thanks

Team ${appName}


`; if (updateRes?.RequestBody) { setRequestBody(updateRes?.RequestBody); setRequestSubject(updateRes?.RequestSubject); diff --git a/apps/OpenSign/src/primitives/GetReportDisplay.jsx b/apps/OpenSign/src/primitives/GetReportDisplay.jsx index e4f255e3e..8c7b15ee9 100644 --- a/apps/OpenSign/src/primitives/GetReportDisplay.jsx +++ b/apps/OpenSign/src/primitives/GetReportDisplay.jsx @@ -763,7 +763,7 @@ const ReportTable = (props) => { const body = doc?.RequestBody || doc?.ExtUserPtr?.TenantId?.RequestBody || - `

Hi {{receiver_name}},


We hope this email finds you well. {{sender_name}} has requested you to review and sign "{{document_title}}".

Your signature is crucial to proceed with the next steps as it signifies your agreement and authorization.


{{signing_url}}


If you have any questions or need further clarification regarding the document or the signing process, please contact the sender.


Thanks

Team ${appName}


`; + `

Hi {{receiver_name}},


We hope this email finds you well. {{sender_name}} has requested you to review and sign "{{document_title}}".

Your signature is crucial to proceed with the next steps as it signifies your agreement and authorization.


Sign here



If you have any questions or need further clarification regarding the document or the signing process, please contact the sender.


Thanks

Team ${appName}


`; const res = replaceMailVaribles(subject, body, variables); setMail((prev) => ({ ...prev, subject: res.subject, body: res.body })); setIsNextStep({ [user.Id]: true });