title: Sending mail in node.js using nodemailer
body: <p>I am trying to send mail in node.js using Nodemailer but it shows some error like
  <code>{ [Error: self signed certificate in certificate chain] code: 'ECONNECTION', command: 'CONN' }</code></p>
  
  <p>My node.js code is</p>
  
  <pre><code>var express    =    require('express');
  var app        =    express();
  var nodemailer = require('nodemailer');
  
  var transporter = nodemailer.createTransport('smtps://something%40gmail.com:password@smtp.gmail.com');
  
  var mailOptions = {
    to: 'stevecameron2016@gmail.com',
    subject: 'Hello ?', 
    text: 'Hello world ??', 
    html: '&lt;b&gt;Hello world ??&lt;/b&gt;' 
  };
  
  transporter.sendMail(mailOptions, function(error, info){
    if(error){
       return console.log(error);
    }
    console.log('Message sent: ' + info.response);
  });
  
  var server     =    app.listen(8900,function(){
    console.log("We have started our server on port 8900");
  });
  </code></pre>