1const sendmail = require('sendmail')();
2
3sendmail({
4 from: 'test@finra.org',
5 to: 'YOUR@gmail.com',
6 subject: 'Hello World',
7 html: 'Mail of test sendmail '
8}, function (err, reply) {
9 console.log(err && err.stack)
10 console.dir(reply)
11})
12