From b6ba795cf46e1c2a6e7ac86a7b3a466651aa66b0 Mon Sep 17 00:00:00 2001 From: Marvin Gemlin Date: Tue, 29 Sep 2026 22:06:20 +0000 Subject: [PATCH] =?UTF-8?q?Kontaktmails:=20Absender=20und=20Empf=C3=A4nger?= =?UTF-8?q?texte=20anpassen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/services/contact-email.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/server/services/contact-email.js b/src/server/services/contact-email.js index c6adad0..d127af3 100644 --- a/src/server/services/contact-email.js +++ b/src/server/services/contact-email.js @@ -9,7 +9,7 @@ export function createContactEmailService(makeTransport) { { SMTP_HOST: "127.0.0.1", SMTP_PORT: "1025", - SMTP_FROM: "Tri-Hub Simulation ", + SMTP_FROM: "Tri-Hub Ernährung ", }, makeTransport, ); @@ -18,19 +18,20 @@ export function createContactEmailService(makeTransport) { [ { to: email, - text: `Deine Kontaktanfrage an ${advisorDisplayName(advisor)} ist in der Simulation eingegangen.`, + text: `Deine Kontaktanfrage an ${advisorDisplayName(advisor)} ist in der Simulation eingegangen. ${advisorDisplayName(advisor)} wird sich bei dir melden.`, + closing: "Viele Grüße\nTri-Hub Ernährung", }, { to: advisor.email, - text: `Hallo ${advisorDisplayName(advisor)}, eine simulierte Kontaktanfrage von ${email} ist eingegangen.`, + text: `Hallo ${advisorDisplayName(advisor)}, bitte setze dich mit ${email} in Kontakt.`, }, - ].map(async ({ to, text }) => { + ].map(async ({ to, text, closing }) => { const result = await transport.sendMail({ from, to, subject: "Eingangsbestätigung – Tri-Hub Kontakt (Simulation)", - text: `${text}\n\nKontaktgrund: ${reason}\n\n${contactNotice}`, + text: `${text}\n\nKontaktgrund: ${reason}\n\n${contactNotice}${closing ? `\n\n${closing}` : ""}`, }); if ( !result.accepted?.some(