Merge pull request #63 from xtr-dev/dev

Fix template population in beforeSend hook and bump version to 0.4.16
This commit is contained in:
Bas
2025-10-06 23:23:14 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@xtr-dev/payload-mailing",
"version": "0.4.15",
"version": "0.4.16",
"description": "Template-based email system with scheduling and job processing for PayloadCMS",
"type": "module",
"main": "dist/index.js",

View File

@@ -233,6 +233,7 @@ export class MailingService implements IMailingService {
const email = await this.payload.findByID({
collection: this.emailsCollection as any,
id: emailId,
depth: 1,
}) as BaseEmailDocument
// Combine from and fromName for nodemailer using proper sanitization