User - Js CSV
User - Js CSV
js csv
import express from "express";
import nodemailer from 'nodemailer';
// });
// console.log(email,'Emails sent successfully');
// }
// console.log('Emails sent successfully');
// sendEmails();
// });
try {
const transporter = nodemailer.createTransport({
// configure your email service
service: 'Gmail',
auth: {
user: '[email protected]',
pass: 'uadndlkrqlldzjsd'
}
});
res.end();
} catch (error) {
console.error('Error:', error);
// Send SSE message to client in case of error
res.write('data: Error sending emails\n\n');
res.end();
}
});
export { router as UserRouter };