In addition to SMTP you can use other kind of transports as well with Nodemailer. See Available Transports below for known transports.
The following example uses nodemailer-ses-transport (Amazon SES).
var nodemailer = require('nodemailer');
var ses = require('nodemailer-ses-transport');
var transporter = nodemailer.createTransport(ses({
accessKeyId: 'AWSACCESSKEY',
secretAccessKey: 'AWS/Secret/key'
}));
Available Transports
- nodemailer-mandrill-transport for sending messages through Mandrill’s Web API
- nodemailer-pickup-transport for storing messages to pickup folders
- nodemailer-sailthru-transport for sending messages through Sailthru’s Web API
- nodemailer-sendgrid-transport for sending messages through SendGrid’s Web API
- nodemailer-sendmail-transport for piping messages to the sendmail command
- nodemailer-ses-transport for sending messages to AWS SES
- nodemailer-sparkpost-transport for sending messages through SparkPost’s Web API
- nodemailer-stub-transport is just for returning messages, most probably for testing purposes
- add yours (see transport api documentation here)