Update Utils/sendEmail.js
This commit is contained in:
parent
63f04f93d5
commit
cfcf990d36
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user