0

I want to send mails without password authentication using node.js modules.

I used "sendmail" to send mails. It's working fine but unable to send mails to gmail accounts.

sendmail({
 from: 'abc@gmail.com',
 to: 'xyz@gmail.com',
 subject: 'test sendmail',
 html: 'Mail of test sendmail'
}, function (err, reply) {
 console.log(err && err.stack);
 console.dir("reply",reply);
});

How shall I fix it?

Thanks for your valuable answers.

Dinesh Madanlal
  • 337
  • 4
  • 20

0 Answers0