chore: rebrand zu Dockly-Pfandsystem
Anzeige-Name ueberall umgestellt: - index.html title, Login-H1, TopNav, SuperAdmin-Header - Mail-Subject, HTML-Body, Default-MAIL_FROM - PWA Manifest name (short_name: Dockly-Pfand wegen Laengen-Limit)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import nodemailer from 'nodemailer';
|
||||
import { Resend } from 'resend';
|
||||
|
||||
const FROM = process.env.MAIL_FROM || 'Pfandsystem Demo <demo@dockly.de>';
|
||||
const FROM = process.env.MAIL_FROM || 'Dockly-Pfandsystem Demo <demo@dockly.de>';
|
||||
|
||||
let transporter = null;
|
||||
if (process.env.SMTP_HOST && process.env.SMTP_USER && process.env.SMTP_PASS) {
|
||||
@@ -37,7 +37,7 @@ async function sendMail({ to, subject, html }) {
|
||||
export async function sendDemoInviteMail({ to, name, slug, password, loginUrl, days }) {
|
||||
const html = `
|
||||
<div style="font-family:system-ui,Segoe UI,Helvetica,Arial,sans-serif;max-width:560px;margin:auto">
|
||||
<h2 style="color:#051e23">Willkommen im Pfandsystem-Demo</h2>
|
||||
<h2 style="color:#051e23">Willkommen im Dockly-Pfandsystem-Demo</h2>
|
||||
<p>Hallo ${name},</p>
|
||||
<p>dein <strong>${days}-Tage Demo-Zugang</strong> ist bereit. Du kannst alle Funktionen
|
||||
in Ruhe testen und eigene Beispieldaten anlegen.</p>
|
||||
@@ -48,20 +48,20 @@ export async function sendDemoInviteMail({ to, name, slug, password, loginUrl, d
|
||||
<p style="margin:4px 0"><strong>Tenant-Kennung:</strong> ${slug}</p>
|
||||
</div>
|
||||
<p>Bitte aendere dein Passwort nach dem ersten Login.</p>
|
||||
<p style="color:#64748b;font-size:12px">Diese Mail wurde automatisch versandt vom Pfandsystem-Demo-Portal.</p>
|
||||
<p style="color:#64748b;font-size:12px">Diese Mail wurde automatisch versandt vom Dockly-Pfandsystem-Demo-Portal.</p>
|
||||
</div>`;
|
||||
return sendMail({ to, subject: `Dein Pfandsystem-Demo-Zugang (${days} Tage)`, html });
|
||||
return sendMail({ to, subject: `Dein Dockly-Pfandsystem-Demo-Zugang (${days} Tage)`, html });
|
||||
}
|
||||
|
||||
// Test-Endpoint Helper
|
||||
export async function sendTestMail(to) {
|
||||
const html = `
|
||||
<div style="font-family:system-ui,Segoe UI,Helvetica,Arial,sans-serif;max-width:560px;margin:auto">
|
||||
<h2 style="color:#051e23">Pfandsystem Demo - SMTP-Test</h2>
|
||||
<h2 style="color:#051e23">Dockly-Pfandsystem Demo - SMTP-Test</h2>
|
||||
<p>Diese Test-Mail bestaetigt, dass der Mail-Versand ueber
|
||||
<code>${process.env.SMTP_HOST || 'kein SMTP'}</code> funktioniert.</p>
|
||||
<p>Absender: <code>${FROM}</code></p>
|
||||
<p>Zeitstempel: ${new Date().toISOString()}</p>
|
||||
</div>`;
|
||||
return sendMail({ to, subject: 'Pfandsystem Demo - SMTP-Test', html });
|
||||
return sendMail({ to, subject: 'Dockly-Pfandsystem Demo - SMTP-Test', html });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user