egg-dynamic-email
v1.0.2
Published
a dynamic email server for egg
Downloads
3
Maintainers
Readme
egg-dynamic-email
Install
$ npm i egg-dynamic-email --save
Usage
// {app_root}/config/plugin.js
exports.eggDynamicEmail = {
enable: true,
package: 'egg-dynamic-email',
};
Configuration
// {app_root}/config/config.default.js
exports.eggDynamicEmail = {
user: '',
password: '',
host: '',
sender: '',
};
see config/config.default.js for more detail.
Example
// {app_root}/app/controller/home.js
async index() {
const { ctx } = this
const res = await ctx.app.email.sendEmail('title','content','receiver', [{data: 'html content', alternative: true}])
}
Questions & Suggestions
Please open an issue here.