[PR #359] [MERGED] feat: send email when recipient is done signing and every recipient is done signing #909

Closed
opened 2026-02-26 19:30:59 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/359
Author: @ephraimduncan
Created: 9/7/2023
Status: Merged
Merged: 9/22/2023
Merged by: @Mythie

Base: feat/refreshHead: feat/send-email


📝 Commits (8)

  • dbbe17a feat: send email when recipient is done signing
  • da20336 feat: send email when all recipients have signed
  • 863e53a refactor: pass document id as arguments
  • 525ff21 feat: avoid sending pending email to document with 1 recipients
  • 6f4c280 chore: match file name and method name
  • 776324c fix: fitler only unsigned documents
  • 2c90f76 Merge branch 'feat/refresh' into feat/send-email
  • 0d130b1 fix: minor updates

📊 Changes

4 files changed (+138 additions, -0 deletions)

View changed files

📝 packages/lib/server-only/document/complete-document-with-token.ts (+14 -0)
📝 packages/lib/server-only/document/seal-document.ts (+3 -0)
packages/lib/server-only/document/send-completed-email.ts (+57 -0)
packages/lib/server-only/document/send-pending-email.ts (+64 -0)

📄 Description

  • Send email when a recipient has signed
  • Send email once document has been sealed

Summary by CodeRabbit

  • New Feature: Added email notifications for pending and completed documents. When a document is sealed, an email notification is sent to all recipients. If there are recipients who have not yet signed the document, a pending email notification is sent to them.
  • Refactor: Enhanced the sealDocument and completeDocumentWithToken functions to include the new email notification feature.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/359 **Author:** [@ephraimduncan](https://github.com/ephraimduncan) **Created:** 9/7/2023 **Status:** ✅ Merged **Merged:** 9/22/2023 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `feat/refresh` ← **Head:** `feat/send-email` --- ### 📝 Commits (8) - [`dbbe17a`](https://github.com/documenso/documenso/commit/dbbe17a0a8a662ff9ea43d0db9dc244134ea190c) feat: send email when recipient is done signing - [`da20336`](https://github.com/documenso/documenso/commit/da2033692c157f12f57832bb26287f8e49038569) feat: send email when all recipients have signed - [`863e53a`](https://github.com/documenso/documenso/commit/863e53a2d5cc8077302ac7a37789f69e7163de92) refactor: pass document id as arguments - [`525ff21`](https://github.com/documenso/documenso/commit/525ff215634c02fb9f456568795c2ed917266515) feat: avoid sending pending email to document with 1 recipients - [`6f4c280`](https://github.com/documenso/documenso/commit/6f4c2805833f9ad90051b88796cf0591f8f0f7cc) chore: match file name and method name - [`776324c`](https://github.com/documenso/documenso/commit/776324c8750a409f366363fb27c1c60f65da30c3) fix: fitler only unsigned documents - [`2c90f76`](https://github.com/documenso/documenso/commit/2c90f767fda5bbd35e78c33bcb9b7d583a32a029) Merge branch 'feat/refresh' into feat/send-email - [`0d130b1`](https://github.com/documenso/documenso/commit/0d130b17c8eb1967cd1cb79a196080f37fecd2fc) fix: minor updates ### 📊 Changes **4 files changed** (+138 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/lib/server-only/document/complete-document-with-token.ts` (+14 -0) 📝 `packages/lib/server-only/document/seal-document.ts` (+3 -0) ➕ `packages/lib/server-only/document/send-completed-email.ts` (+57 -0) ➕ `packages/lib/server-only/document/send-pending-email.ts` (+64 -0) </details> ### 📄 Description - Send email when a recipient has signed - Send email once document has been sealed <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ### Summary by CodeRabbit - New Feature: Added email notifications for pending and completed documents. When a document is sealed, an email notification is sent to all recipients. If there are recipients who have not yet signed the document, a pending email notification is sent to them. - Refactor: Enhanced the `sealDocument` and `completeDocumentWithToken` functions to include the new email notification feature. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:30:59 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#909
No description provided.