[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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user