Update Utils/sendEmail.js
This commit is contained in:
parent
63f04f93d5
commit
cfcf990d36
@ -19,9 +19,10 @@
|
|||||||
// });
|
// });
|
||||||
// };
|
// };
|
||||||
// export default sendEmail;
|
// export default sendEmail;
|
||||||
import nodemailer from "nodemailer";
|
|
||||||
|
|
||||||
const transporter = nodemailer.createTransport({
|
import { createTransport } from "nodemailer";
|
||||||
|
|
||||||
|
const transporter = createTransport({
|
||||||
host: "smtp-relay.brevo.com",
|
host: "smtp-relay.brevo.com",
|
||||||
port: 587,
|
port: 587,
|
||||||
auth: {
|
auth: {
|
||||||
@ -43,6 +44,7 @@ export default sendEmail;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// import sgMail from '@sendgrid/mail';
|
// import sgMail from '@sendgrid/mail';
|
||||||
// sgMail.setApiKey(process.env.SENDGRID_API_KEY)
|
// sgMail.setApiKey(process.env.SENDGRID_API_KEY)
|
||||||
// // console.log(process.env.SENDGRID_API_KEY)
|
// // console.log(process.env.SENDGRID_API_KEY)
|
||||||
|
Loading…
Reference in New Issue
Block a user