Skip to content

slonoed/loopback-connector-fakemail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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')
    }
};