1.0.3 • Published 7 years ago
fpm-plugin-emailer v1.0.3
fpm-plugin-emailer
fpm-server的邮件推送插件
CHANGELOG
- Use nunjucks template
Install
$ npm i fpm-plugin-emailer --save
Dependence Config
{
...
email: {
"service": "qq",
"user": "88888888@qq.com",
"pass": "88888888"
}
...
}
Use It
fpm.emailer.send(options, callback)
var email = {
to: 'xxxx@xx.com',
subject: 'this is a title',
template: 'hellow {{ name }}', //use nunjucks template enginer
data: {name: 'jack'}
};
fpm.emailer.send(email, function(err, res){
//code the callback here
})