Skip to content

Commit

Permalink
Quickfix: Kontaktformular
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Luthe authored and Simon Luthe committed Aug 8, 2024
1 parent b80a129 commit 2e76995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ apiRouter.post('/contact', async (req, res) => {
`;
}

await sendContactEmail(email, subject, emailContent);
await sendContactEmail(email, emailContent);

res.status(200).json({ message: 'Nachricht erfolgreich gesendet' });
} catch (error) {
Expand All @@ -189,7 +189,7 @@ apiRouter.post('/contact', async (req, res) => {
}
});

async function sendContactEmail(senderEmail, subject, content) {
async function sendContactEmail(senderEmail, content) {
const transporter = createTransporter();
const template = getContactEmailTemplate(); // Neue Funktion zum Laden des Kontakt-Templates

Expand Down

0 comments on commit 2e76995

Please sign in to comment.