Comment

Comment by whileonebegin

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 : "[email protected]",
            from : '[email protected]',
            subject : 'My Subject',
            body: 'Blah\nBlah\nBlah.,
            authentication : "login",        // auth login is supported; anything else is no auth
            username : '',
            password : ''
        },
        function (err, result) {
        });
parent whileonebegin 12 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton