javascript - Nodemailer started to give an error out of nowhere -


i've been using nodemailer in app year without problems, today started following error on mail instances

{ [error: self signed certificate] code: 'econnection', command: 'conn' } 

i haven't touched code in long while don't think somehow messed up, here's how go connfiguring transporter , sending mails (i changed addresses , host privacy:

transporter set-up:

  var transporter = nodemailer.createtransport({   host: 'server.dummy.mx',   port: 465,   secure: true, // use ssl   auth: {     user: 'no-reply@app.com',     pass: 'qwerty123$%&'   } }) 

mail function:

export function create(req, res) {   return transporter.sendmail({     from: 'no-reply@app.com',     to: req.body.to,     subject: req.body.subject,     text: req.body.text,     html: req.body.html   }, function(error, info) {     if (error) {       console.log(error);       res.status(200).json(error).end();     } else {       console.log('message sent: ' + info.response);       res.status(200).end();     }   }); } 

the errors similar mine i've found cause because triying send messages gmail account, not case here, i'm using personalized address, i'm little lost, appreciate help, thanks!


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -