No description, website, or topics provided.
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.eslintrc
LICENSE
README.md
emails.jade
index.js
package.json
test.js

README.md

loopback-connector-fakemail

Do not use this package. Mailhog is better choise.

Connector for loopback email model. Save email data to json files and in single index.html file.

Usage

Install npm i --save loopback-connector-fakemail

Add to server/datasources.json

{
  ...
  "email": {
    "name": "email",
    "connector": "fakemail",
    "path": "/tmp/fakemails"
  },
  ...

Params

Path

Absolute path to store emails. Default to /tmp/fakemails/

You can use datasources.local.js like this.

import { join } from 'path';

module.exports = {
    email: {
        name: 'email',
        connector: 'fakemail',
        path: join(__dirname, '../fake-emails')
    }
};