How does nodemailer@latest send mail?

  node.js, question

Full of pits

I found all kinds of demo, including the full demo on github, but I couldn’t replace it with gmail.

Daniel, look at what is wrong.

After a few days of tossing and turning, I remember that there was code that turned over cnode’s open source client before, and it was no good either.

There is really no way, the cheek to ask for advice from you

Status code: 503, auth fail

var nodemailer = require("nodemailer");
 var smtpTransport = require('nodemailer-smtp-transport');
 
 //Open an SMTP connection pool
 var transport = nodemailer.createTransport(smtpTransport({
 Host: "smtp.qq.com", ///host
 Secure: true//use SSL
 Port: 465, // SMTP port
 auth: {
 User: "450409405@qq.com", // account number
 Pass: "xxx" // password
 bracket
 }));
 
 //Set the mail content
 var mailOptions = {
 From: "axetroy < 450409405 @ QQ.com >"//from address
 To: "troy450409405@qq.com", // mailing list
 Subject: "helloworld"//title
 html: "<b>thanks a for visiting!  < /b > World, You Okay! "  // html content
 };
 
 //Send mail
 transport.sendMail(mailOptions, function(error, response) {
 if (error) {
 console.error(error);
 } else {
 console.log(response);
 bracket
 transport.close();  //If it is useless, close the connection pool.
 });

See if your qq Postbox has started smtp service