diff --git a/.vs/Uebergangsloesung/config/applicationhost.config b/.vs/Uebergangsloesung/config/applicationhost.config new file mode 100644 index 0000000..71f6696 --- /dev/null +++ b/.vs/Uebergangsloesung/config/applicationhost.config @@ -0,0 +1,962 @@ + + + + + + +
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ + +
+
+
+
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.vs/Uebergangsloesung/v17/.wsuo b/.vs/Uebergangsloesung/v17/.wsuo new file mode 100644 index 0000000..71c49f7 Binary files /dev/null and b/.vs/Uebergangsloesung/v17/.wsuo differ diff --git a/.vs/Uebergangsloesung/v17/DocumentLayout.json b/.vs/Uebergangsloesung/v17/DocumentLayout.json new file mode 100644 index 0000000..8c61154 --- /dev/null +++ b/.vs/Uebergangsloesung/v17/DocumentLayout.json @@ -0,0 +1,23 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\Adams\\source\\repos\\Uebergangsloesung\\", + "Documents": [], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": -1, + "Children": [ + { + "$type": "Bookmark", + "Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json new file mode 100644 index 0000000..f727d0f --- /dev/null +++ b/.vs/VSWorkspaceState.json @@ -0,0 +1,7 @@ +{ + "ExpandedNodes": [ + "" + ], + "SelectedNode": "\\C:\\Users\\Adams\\Source\\Repos\\Uebergangsloesung", + "PreviewInSolutionExplorer": false +} \ No newline at end of file diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite new file mode 100644 index 0000000..8b7ac17 Binary files /dev/null and b/.vs/slnx.sqlite differ diff --git a/assets/index.html b/assets/index.html index c9bd3a1..4cc618a 100644 --- a/assets/index.html +++ b/assets/index.html @@ -53,7 +53,7 @@

Abgesagt

Um es zu Finalisieren füllen Sie bitte die Felder aus

-
+ diff --git a/index.js b/index.js index c77fc82..c5f03fb 100644 --- a/index.js +++ b/index.js @@ -40,9 +40,36 @@ app.post("/post", (req, res) => { to: req.body.email, }, subject: "Anmeldungs für's Absolvententreffen.", - text: `Hallo ${req.body.firstname}! - Du hast dich erfolgreich für das Absolvententreffen am X.Y.Z angemeldet! Hier findest du alle Details https://x.y! - Bei Rückfragen bitte an: absolvententreffen@outlook.com wenden. + text: + ` + + + + +

Liebe/r ${req.body.firstname},

+ +

vielen Dank für deine Anmeldung zum Absolvent*innentreffen am
+ 📅 Donnerstag, 25. September 2025,
+ ⏰ von 17:00 bis 20:00 Uhr
+ 📍 im Speisesaal des SZU, Ungargasse 69, 1030 Wien.

+ +

Wir freuen uns sehr, dich an diesem besonderen Abend begrüßen zu dürfen!

+ +

Dich erwarten spannende Einblicke in aktuelle Entwicklungen am SZU, interessante Führungen sowie die Möglichkeit zum Wiedersehen, Austauschen und gemeinsamen Erinnern. Für das leibliche Wohl sorgt eine engagierte Abschlussklasse – der Reinerlös unterstützt ihre Abschlussreise. Bitte bring dafür Bargeld mit.

+ +

📸 Wenn du Erinnerungsfotos aus deiner Schulzeit beisteuern möchtest, sende sie uns gerne vorab an:
+ 📧 szu.absolventinnentreffen@outlook.com

+ +

❗Falls du wider Erwarten doch nicht teilnehmen kannst, bitten wir dich um eine kurze Absage per E-Mail an dieselbe Adresse. So können wir besser planen – vielen Dank!

+ +

Wir freuen uns auf einen stimmungsvollen Abend mit dir und auf viele schöne Begegnungen!

+ +

Herzliche Grüße
+ Gerti Brindlmayer & Lukas Aigner
+ im Namen des Teams des Absolvent*innen- & Fördervereins des SZU

+ + + `, }, (err, info) => { if (err) return res.send(err); @@ -50,6 +77,47 @@ app.post("/post", (req, res) => { return res.send("Du wurdest erfolgreich angemeldet!"); }); +app.post("/cancel", (req, res) => { + fs.writeFile(`./data/${req.body.firstname}-${req.body.lastname}.json`, JSON.stringify(req.body), (err) => { + console.log(err) + }) + + transporter.sendMail({ + from: "Alumnihub ", + to: `${req.body.firstname} ${req.body.lastname} <${req.body.email}>`, + envelope: { + from: "alumnihub@kocoder.xyz", + to: req.body.email, + }, + subject: "Anmeldungs für's Absolvententreffen.", + text: ` + + + + +

Liebe/r ${req.body.firstname},

+ +

vielen Dank für deine Rückmeldung zum Absolventinnentreffen am 25. September 2025. Auch wenn du diesmal nicht teilnehmen kannst, freut es uns sehr, dass du mit dem Absolventinnen- & Förderverein des SZU in Verbindung bleiben möchtest.

+ +

Wir haben deine Kontaktdaten gespeichert und melden uns gerne bei zukünftigen Veranstaltungen oder Aktivitäten des Vereins wieder bei dir.

+ +

Wenn du Fragen hast oder dich aktiv einbringen möchtest, erreichst du uns jederzeit unter:
+ 📧 szu.absolventinnentreffen@outlook.com

+ +

Herzliche Grüße
+ Gerti Brindlmayer & Lukas Aigner
+ im Namen des Teams des Absolvent*innen- & Fördervereins des SZU

+ + + + `, + }, (err, info) => { + if (err) return res.send(err); + }); + return res.send("Du hast erfolgreich abgesagt !"); +}); + + app.listen(port, () => { console.log(`Example app listening on port ${port}`); });