egg-nodemail

[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down

Usage no npm install needed!

<script type="module">
  import eggNodemail from 'https://cdn.skypack.dev/egg-nodemail';
</script>

README

egg-nodemailer

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i egg-nodemailer --save

Usage

// {app_root}/config/plugin.js
exports.nodemailer = {
  enable: true,
  package: 'egg-nodemail',
};

Configuration

// {app_root}/config/config.default.js
exports.nodemailer = {
  client: {
    host: "your email host",
    port: 25,
    auth: {
      user: "your username",
      pass: "your password",
    },
  },
};

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT