const sendmail = require('sendmail')(); sendmail({ from: 'test@finra.org', to: 'YOUR@gmail.com', subject: 'Hello World', html: 'Mail of test sendmail ' }, function (err, reply) { console.log(err && err.stack) console.dir(reply) })