title: Error: connect ECONNREFUSED 127.0.0.1:465 nodemailer
body: <p>I was using my gmail account to send an smtp alert messages to my users email . Example, registration or account blocked etc. I am using a nodemailer and was email were sent successfully without a single failure. Below is my code .</p>
  
  <pre><code>var nodemailer = require("nodemailer");
  
  // create reusable transport method (opens pool of SMTP connections)
  var smtpTransport = nodemailer.createTransport("SMTP",{
      service: "Gmail",
      auth: {
          user: "gmail.user@gmail.com",
          pass: "userpass"
      }
  });
  
  // setup e-mail data with unicode symbols
  var mailOptions = {
      from: "Fred Foo ✔ &lt;foo@blurdybloop.com&gt;", // sender address
      to: "bar@blurdybloop.com, baz@blurdybloop.com", // list of receivers
      subject: "Hello ✔", // Subject line
      text: "Hello world ✔", // plaintext body
      html: "&lt;b&gt;Hello world ✔&lt;/b&gt;" // html body
  }
  
  // send mail with defined transport object
  smtpTransport.sendMail(mailOptions, function(error, response){
      if(error){
          console.log(error);
      }else{
          console.log("Message sent: " + response.message);
      }
  
      // if you don't want to use this transport object anymore, uncomment following line
      //smtpTransport.close(); // shut down the connection pool, no more messages
  });
  </code></pre>
  
  <p>Just yesterday ,  signup for google for business account to my @mydomain account, then replace gmail with my new google for business email that is </p>
  
  <pre><code>var smtpTransport = nodemailer.createTransport("SMTP",{
      service: "Gmail",
      auth: {
          user: "user@mydomain.com",
          pass: "userpass"
      }
  });
  </code></pre>
  
  <p>The problem is, it does not send the email with new account. It rather returned the titled error on my console. I tried change the security of my new account to allow less secure apps from the google console all to no avail. Please what does this error implies? Also considering the user name and pwd for my email are used, is that the best option ? Please how is best achieved ? Any help would be appreciated.</p>