many updates :-)

This commit is contained in:
Gerhard Scheikl
2026-05-08 10:40:19 +02:00
parent 5b2aa5d62b
commit 770c6fd16a
16 changed files with 876 additions and 151 deletions
+6 -7
View File
@@ -175,26 +175,25 @@ function renderEmailBody({
invoiceNumber: string;
language: "de" | "en";
}): { text: string; html: string } {
const company = settings.companyName || "your supplier";
if (language === "en") {
const text =
`Dear customer,\n\n` +
`Please find attached invoice ${invoiceNumber}.\n\n` +
`Kind regards,\n${company}`;
`Thank you for your purchase.`;
const html =
`<p>Dear customer,</p>` +
`<p>Please find attached invoice <strong>${escapeHtml(invoiceNumber)}</strong>.</p>` +
`<p>Kind regards,<br/>${escapeHtml(company)}</p>`;
`<p>Thank you for your purchase.</p>`;
return { text, html };
}
const text =
`Sehr geehrte Damen und Herren,\n\n` +
`Hallo,\n\n` +
`anbei finden Sie die Rechnung ${invoiceNumber}.\n\n` +
`Mit freundlichen Grüßen,\n${company}`;
`Danke für deinen Einkauf.`;
const html =
`<p>Sehr geehrte Damen und Herren,</p>` +
`<p>Hallo,</p>` +
`<p>anbei finden Sie die Rechnung <strong>${escapeHtml(invoiceNumber)}</strong>.</p>` +
`<p>Mit freundlichen Grüßen,<br/>${escapeHtml(company)}</p>`;
`<p>Danke für deinen Einkauf.</p>`;
return { text, html };
}