nodemailer-env-transport
v1.0.0
Published
```bash npm install --save nodemailer nodemailer-env-transport nodemailer-stub-transport nodemailer-smtp-transport ```
Downloads
3
Readme
Installation
npm install --save nodemailer nodemailer-env-transport nodemailer-stub-transport nodemailer-smtp-transport
Usage:
Write index.js
const transporter = require('nodemailer').createTransport(require('nodemailer-env-transport')())
Run
EMAIL_TRANSPORT=smtp EMAIL_TRANSPORT_CONFIG='{"host": "localhost", "port": 25, "auth": {"user": "username", "pass": "password"}}' node index.js