diff --git a/.env.dist b/.env.dist index ced013a..f86ff15 100644 --- a/.env.dist +++ b/.env.dist @@ -37,3 +37,4 @@ SMTP_HOST=xxxxxx SMTP_PORT=587 SMTP_USER=xxxxxx SMTP_PASS=xxxxxx +SMTP_SENDER=no-reply@connect-project.io diff --git a/src/middleware/parse.js b/src/middleware/parse.js index 4730240..e39f234 100644 --- a/src/middleware/parse.js +++ b/src/middleware/parse.js @@ -80,13 +80,6 @@ module.exports = (parseCloudEvent) => { }, // eslint-disable-next-line require-await apiCallback: async ({ payload }) => { - // eslint-disable-next-line no-unused-vars - const mailOptions = { - from: payload.from, - to: payload.to, - subject: payload.subject, - text: payload.text - }; try { await transporter.sendMail(payload) console.log('email sent');