README
viper-plugin-nodemailer
Viper plugin for nodemailer
Install
npm install --save viper-plugin-nodemailer
Config
This plugin listens to nodemailer
-key in your configuration.
Multiple configuration-items are possible. Each item will create a viper-service (serviceName == item-keyname) with a nodemailer-transporter instance.
Example
{
nodemailer: {
mySMTP: {
host: 'localhost',
port: 587,
auth: {
user: 'me',
pass: 'my-super-secret-pass'
}
}
}
}
This will create a service mySMTP
on your viper-app which will provide the transporter-instance for this configuration.
Services
nodemailer
The plain nodemailer lib.sendMail
function(transporter, emailData)
A function which sends an eMail using giventransporter
withemailData
. For more information aboutemailData
have a look at official nodemailer docs.
Author
Christian Blaschke mail@platdesign.de