@@ -76,30 +76,30 @@ router.post("/get-involved", async (req, res) => {
76
76
} ,
77
77
} ;
78
78
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
+ // });
103
103
104
104
await gsapi . spreadsheets . values . append ( updateOptions ) ;
105
105
return res . status ( 201 ) . send ( { msg : "Form submission accepted" } ) ;
0 commit comments