const nodemailer = require("nodemailer");
let transporter = nodemailer.createTransport(
{
service: "gmail",
host: "smtp.gmail.com",
port: 465,
auth: {
user: "userEmail", // generated ethereal user
pass: process.env.emailPass, // generated ethereal password
},
},
{
from: "<userEmail>",
}
);