[34588f42] Feat: Personalisierte Dankes-E-Mail mit Anleitung und Signatur

- ReleaseParticipant Tabelle hinzugefügt, um Vornamen für den Webhook zwischenzuspeichern.
- Dankes-E-Mail Template mit Anleitungstext, Gutschein-Code und Anleitung-Bild aktualisiert.
- Offizielle Projektsignatur in Backend-E-Mails integriert.
- Frontend sendet nun Teilnehmer-Mapping beim Versand der Anfrage.
This commit is contained in:
2026-04-17 21:43:30 +00:00
parent 3f6b27a89f
commit ba06e6d033
3 changed files with 77 additions and 41 deletions

View File

@@ -99,7 +99,7 @@ function App() {
};
const handleSendRelease = async () => {
if (!reminderResult || !isGmailAuthenticated) return;
if (!isGmailAuthenticated) return;
setIsSendingRelease(true);
setReleaseMessage("Bereite Senden vor...");
@@ -124,7 +124,8 @@ function App() {
return {
to: to,
subject: subject,
body: body
body: body,
first_name: firstName // Extra field for participant mapping
};
}).filter(e => e.to);
@@ -135,8 +136,9 @@ function App() {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
emails: emailsToSend,
scheduled_time: scheduledTime || null
emails: emailsToSend.map(e => ({ to: e.to, subject: e.subject, body: e.body })),
scheduled_time: scheduledTime || null,
participants: emailsToSend.map(e => ({ email: e.to, first_name: e.first_name }))
})
});
const data = await response.json();