MHN
Add a comment on Hacker News →
1 of 31 comments
  1. Is this really much easier than using https://www.npmjs.org/package/mailer? Also, unless nodemailer is written by the same developer as mailer, it appears they copied the tagline, "simple as cake".

            email.send({
                host : "smtp.gmail.com",              // smtp server hostname
                port : "465",                     // smtp server port
                ssl: true,
                domain : "localhost",            // domain used by client to identify itself to server
                to : "recipient@somewhere.com",
                from : 'sender@somewhere.com',
                subject : 'My Subject',
                body: 'Blah\nBlah\nBlah.,
                authentication : "login",        // auth login is supported; anything else is no auth
                username : '',
                password : ''
            },
            function (err, result) {
            });