Skip to content

Commit

Permalink
fix(contact): fix contact form
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstreif committed May 15, 2024
1 parent 865f66e commit 8e2a9ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ router
host: process.env.CONTACT_HOST,
port: process.env.CONTACT_PORT,
auth: {
user: process.env.CONTACT_USER,
user: process.env.CONTACT_SENDER,
pass: process.env.CONTACT_PASS,
},
});

const mailOptions = {
from: `${req.body.name} <${req.body.email}>`,
from: process.env.CONTACT_USER,
to: process.env.CONTACT_RECEIVE,
subject: `Anfrage via Kontaktformular von ${req.body.name}`,
text: `${req.body.name} (${req.body.email}) schreibt: ${req.body.message}`,
Expand Down

0 comments on commit 8e2a9ed

Please sign in to comment.