Skip to content

Commit 5132041

Browse files
committed
Temporarily disable emails for get involved form
1 parent acacf8f commit 5132041

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/routers/formRouter.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -76,30 +76,30 @@ router.post("/get-involved", async (req, res) => {
7676
},
7777
};
7878

79-
var mailOptions = {
80-
from: process.env.SMTP_USER,
81-
to: process.env.INFO_EMAIL,
82-
subject: "New kcsoc.com Form Entry: Get Involved",
83-
text: `
84-
You have got a new response on the kcsoc.com Get Involved Form!
85-
Please find further details below.
86-
87-
Name: ${firstName} ${lastName}
88-
University: ${university}
89-
Course: ${course}
90-
Email: ${email}
91-
Phone Number: ${phoneNumber}
92-
Student ID: ${studentID},
93-
Something interesting: ${somethingInteresting}
94-
`,
95-
};
96-
transporter.sendMail(mailOptions, function (error, info) {
97-
if (error) {
98-
console.log(error);
99-
} else {
100-
console.log("Email sent: " + info.response);
101-
}
102-
});
79+
// var mailOptions = {
80+
// from: process.env.SMTP_USER,
81+
// to: process.env.INFO_EMAIL,
82+
// subject: "New kcsoc.com Form Entry: Get Involved",
83+
// text: `
84+
// You have got a new response on the kcsoc.com Get Involved Form!
85+
// Please find further details below.
86+
87+
// Name: ${firstName} ${lastName}
88+
// University: ${university}
89+
// Course: ${course}
90+
// Email: ${email}
91+
// Phone Number: ${phoneNumber}
92+
// Student ID: ${studentID},
93+
// Something interesting: ${somethingInteresting}
94+
// `,
95+
// };
96+
// transporter.sendMail(mailOptions, function (error, info) {
97+
// if (error) {
98+
// console.log(error);
99+
// } else {
100+
// console.log("Email sent: " + info.response);
101+
// }
102+
// });
103103

104104
await gsapi.spreadsheets.values.append(updateOptions);
105105
return res.status(201).send({ msg: "Form submission accepted" });

0 commit comments

Comments
 (0)