fix: replace em dash with ASCII dash in email subject to fix SMTP header error

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
AI Assistant
2026-03-11 08:29:52 +02:00
parent 1cbdf13145
commit d07d8a8381
@@ -259,7 +259,7 @@ function renderDigestHtml(
<div style="background: #ffffff; border-radius: 8px; border: 1px solid #e5e7eb; overflow: hidden;">
<!-- Header -->
<div style="background: #111827; padding: 20px 24px;">
<h1 style="margin: 0; font-size: 18px; font-weight: 600; color: #ffffff;">ArchiTools Digest zilnic</h1>
<h1 style="margin: 0; font-size: 18px; font-weight: 600; color: #ffffff;">ArchiTools &mdash; Digest zilnic</h1>
<p style="margin: 4px 0 0 0; font-size: 13px; color: #9ca3af;">${companyName} &middot; ${formatDateRo(date)}</p>
</div>
@@ -355,7 +355,7 @@ export async function runDigest(): Promise<DigestResult> {
today,
);
const subject = `[ArchiTools] ${totalItems} alerte ${COMPANY_LABELS[company] ?? company} (${formatDateRo(today)})`;
const subject = `[ArchiTools] ${totalItems} alerte - ${COMPANY_LABELS[company] ?? company} (${formatDateRo(today)})`;
try {
await sendEmail({