Skip to content
fpm-plugin-emailer
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

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
})
You can’t perform that action at this time.