Update Utils/sendEmail.js

This commit is contained in:
gitadmin 2025-04-29 03:53:16 +00:00
parent 63f04f93d5
commit cfcf990d36

View File

@ -19,9 +19,10 @@
// });
// };
// export default sendEmail;
import nodemailer from "nodemailer";
const transporter = nodemailer.createTransport({
import { createTransport } from "nodemailer";
const transporter = createTransport({
host: "smtp-relay.brevo.com",
port: 587,
auth: {
@ -43,6 +44,7 @@ export default sendEmail;
// import sgMail from '@sendgrid/mail';
// sgMail.setApiKey(process.env.SENDGRID_API_KEY)
// // console.log(process.env.SENDGRID_API_KEY)