How to use the node-ses.sendEmail function in node-ses

To help you get started, we’ve selected a few node-ses examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eladnava / facebook-alerts / routes / sync.js View on Github external
return new Promise(function(resolve, reject) {
        // Actually send the email
        ses.sendEmail(email, function(err, data, res) {
            if (err) {
                // Failed
                return reject(err);
            }

            // Success
            return resolve(data);
        });
    });
};

node-ses

Simple Email Sender for Amazon SES with good docs and error handling

MIT
Latest version published 4 years ago

Package Health Score

45 / 100
Full package analysis

Popular node-ses functions