[PR #391] [MERGED] feat: send custom emails #935

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

📋 Pull Request Information

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

Base: feat/refreshHead: feat/custom-emails


📝 Commits (9)

  • a55197f feat: add prisma schema for document meta
  • 6860726 feat: send custom email subjects
  • d523893 feat: persist document metadata in database for a specific user
  • 677a153 feat: send custom email message
  • d417255 feat: replace template variables with values
  • c9c111c fix: persist newline in emails
  • f2d3c51 fix: avoid creating document meta with empty strings
  • e330e90 fix: document meta relation with document
  • f4c7799 fix: reverse meta relation and tidy code

📊 Changes

16 files changed (+243 additions, -28 deletions)

View changed files

📝 apps/web/src/components/forms/edit-document/add-subject.action.ts (+11 -2)
📝 packages/email/template-components/template-document-completed.tsx (+17 -5)
📝 packages/email/template-components/template-document-invite.tsx (+19 -6)
📝 packages/email/template-components/template-document-pending.tsx (+17 -5)
📝 packages/email/templates/document-invite.tsx (+9 -2)
packages/lib/server-only/document-meta/upsert-document-meta.ts (+30 -0)
📝 packages/lib/server-only/document/get-document-by-id.ts (+1 -0)
📝 packages/lib/server-only/document/send-document.tsx (+16 -3)
packages/lib/server-only/document/update-document.ts (+21 -0)
packages/lib/utils/render-custom-email-template.ts (+12 -0)
packages/prisma/migrations/20230920052232_document_meta/migration.sql (+14 -0)
packages/prisma/migrations/20230920124941_fix_documentmeta_relation/migration.sql (+8 -0)
packages/prisma/migrations/20230922121421_fix_document_meta_schema/migration.sql (+52 -0)
📝 packages/prisma/schema.prisma (+9 -0)
📝 packages/prisma/types/document-with-data.ts (+2 -1)
📝 packages/ui/primitives/document-flow/add-subject.tsx (+5 -4)

📄 Description

No description provided


🔄 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/391 **Author:** [@ephraimduncan](https://github.com/ephraimduncan) **Created:** 9/20/2023 **Status:** ✅ Merged **Merged:** 9/22/2023 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `feat/refresh` ← **Head:** `feat/custom-emails` --- ### 📝 Commits (9) - [`a55197f`](https://github.com/documenso/documenso/commit/a55197fb2d27756ef6a0deadd4cfaafd27b92a4d) feat: add prisma schema for document meta - [`6860726`](https://github.com/documenso/documenso/commit/6860726e83b4202c0f38042985f70d75ccbeb872) feat: send custom email subjects - [`d523893`](https://github.com/documenso/documenso/commit/d5238939ad255355a988c896016c729d43c60a13) feat: persist document metadata in database for a specific user - [`677a153`](https://github.com/documenso/documenso/commit/677a15327bcf47ad679a749b7004f70b353a04d7) feat: send custom email message - [`d417255`](https://github.com/documenso/documenso/commit/d41725591086a7b0d586147c0301204feab1c3fc) feat: replace template variables with values - [`c9c111c`](https://github.com/documenso/documenso/commit/c9c111cdf27c5e80e8002f95475a10863d826148) fix: persist newline in emails - [`f2d3c51`](https://github.com/documenso/documenso/commit/f2d3c516517c6f5c69bc5db8d49b5e48a47fd1e6) fix: avoid creating document meta with empty strings - [`e330e90`](https://github.com/documenso/documenso/commit/e330e906889d00bc939db66c97ec0644ecbc2a08) fix: document meta relation with document - [`f4c7799`](https://github.com/documenso/documenso/commit/f4c77995374d7f2960e6c46a49a061801cf17df8) fix: reverse meta relation and tidy code ### 📊 Changes **16 files changed** (+243 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/src/components/forms/edit-document/add-subject.action.ts` (+11 -2) 📝 `packages/email/template-components/template-document-completed.tsx` (+17 -5) 📝 `packages/email/template-components/template-document-invite.tsx` (+19 -6) 📝 `packages/email/template-components/template-document-pending.tsx` (+17 -5) 📝 `packages/email/templates/document-invite.tsx` (+9 -2) ➕ `packages/lib/server-only/document-meta/upsert-document-meta.ts` (+30 -0) 📝 `packages/lib/server-only/document/get-document-by-id.ts` (+1 -0) 📝 `packages/lib/server-only/document/send-document.tsx` (+16 -3) ➕ `packages/lib/server-only/document/update-document.ts` (+21 -0) ➕ `packages/lib/utils/render-custom-email-template.ts` (+12 -0) ➕ `packages/prisma/migrations/20230920052232_document_meta/migration.sql` (+14 -0) ➕ `packages/prisma/migrations/20230920124941_fix_documentmeta_relation/migration.sql` (+8 -0) ➕ `packages/prisma/migrations/20230922121421_fix_document_meta_schema/migration.sql` (+52 -0) 📝 `packages/prisma/schema.prisma` (+9 -0) 📝 `packages/prisma/types/document-with-data.ts` (+2 -1) 📝 `packages/ui/primitives/document-flow/add-subject.tsx` (+5 -4) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:31:06 +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#935
No description provided.