Email css, faculty consolidated-table

This commit is contained in:
Harshitha Shetty
2025-01-29 02:52:43 +05:30
parent fbba4028cb
commit 2c1f7bec7b
4 changed files with 37 additions and 14 deletions

View File

@@ -38,17 +38,27 @@ router.post("/", upload.single("file"), async (req, res) => {
// Email options
const mailOptions = {
from: "swdc.ate@gmail.com", // Replace with your email
from: "SWDC Admin <swdc.ate@gmail.com>", // Replace with your email
to: recipientEmail,
subject: `Excel File for ${teacher}`,
text: `Attached is the Excel file for ${teacher}.`,
subject: `Examination Appointments for ${teacher}`,
text: `Dear Sir/Madam,
Please find attached the Excel sheet regarding various appointments for the May-June 2024 Examination. Kindly find the tick mark (√) for the respective appointments.
Note: Kindly download the Excel sheet to view the hidden columns referring to the Scheme and other information.
If you have any queries, please contact the H.O.D or the Examination In-charge.
Your cooperation regarding the upcoming examination duties is highly solicited.`,
attachments: [
{
filename: fileName,
path: req.file.path, // Use the uploaded file's path
},
{
filename: fileName,
path: req.file.path, // Use the uploaded file's path
},
],
};
};
try {
// Send email