So I was using nodemailer and I got a syntax error
const transporter = nodemailer.createTransport({
service: "hotmail",
**auth** {
user: "atestemail@outlook.com",
pass: process.env.Password,
}
});
So I was using nodemailer and I got a syntax error
const transporter = nodemailer.createTransport({
service: "hotmail",
**auth** {
user: "atestemail@outlook.com",
pass: process.env.Password,
}
});
Just add a { at the top
Look how different this line is from the other key-value pairs. Tell us about why this one is so different.
That’s where the error is
check up on your basic javascript skills. javascript objects look like this:
{
key : value,
key2 : value2
}
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.