Nodemailer was working correctly for a few months with exactly the same configuration.
var smtpTransport = nodemailer.createTransport({
service: "Zoho",
auth: {
user: environment.smtp.email,
password: environment.smtp.password
},
secure: false,
tls: {
rejectUnauthorized: false
}
});
var mailOptions = {
from: environment.smtp.email,
to: 'some@email.com',
subject: 'Subject',
html: "Mail content here."
}
smtpTransport.sendMail(mailOptions, function(error, response){
console.log(error)
});
It throw " Missing credentials for "PLAIN" ". I have used this config in many places in the app and now it throw this error everywhere. But was working well when I have write the code first time.
"nodemailer": "^4.0.1"