How to install npm package "nodemailer"?

nodejs
npm

#1

Hello!

i want to use something like this to send mail from NodeJS
var mailer = require(“nodemailer”);

Can I do this?

Thank you


#2

There are several tutorials available online explaining how to do what you’re asking, however most use more than just nodemailer.

See:
http://goodheads.io/2015/06/23/how-to-send-emails-using-node-js/