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: "", ///host
 Secure: true//use SSL
 Port: 465, // SMTP port
 auth: {
 User: "", // account number
 Pass: "xxx" // password
 //Set the mail content
 var mailOptions = {
 From: "axetroy < 450409405 @ >"//from address
 To: "", // 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) {
 } else {
 transport.close();  //If it is useless, close the connection pool.

See if your qq Postbox has started smtp service