Skip to content

Commit 0200d23

Browse files
BackendExpertJehanKandyAnupa1998
committed
Update LeaveController.js
Co-Authored-By: JehanKandy <[email protected]> Co-Authored-By: Anupa Gamage <[email protected]>
1 parent 0fa370b commit 0200d23

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

server/Controllers/LeaveController.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ const LeaveController = {
5454
const ResultLeave = leaveAdd.save()
5555

5656
if(ResultLeave){
57-
57+
const mailOptions = {
58+
from: process.env.EMAIL_USER,
59+
to: hodEmail,
60+
subject: "Notifications from ERP",
61+
text: "There is a new Leave to Approve from" + reqEmail,
62+
};
5863
// return res.json({ Status: "Success"})
5964

6065
}

0 commit comments

Comments
 (0)