<-- home

loopback-connector-fakemail (deprecated)

Last few month I use loopback.io on one of my projects. In this project I need to send emails to users. But I don’t want to send email when in development. This simple fake email loopback connector save email to disk using JSON format.

You just need install it

npm i --save loopback-connector-fakemail

Then use this connector in your email data source.

  "db": {
    "host": "localhost",
    "port": 27017,
    "database": "mydb",
    "name": "db",
    "connector": "mongodb"
  "email": {
    "name": "email",
    "connector": "fakemail"

Don’t forget to ovveride it with normal email connector in your datasource.production.js config.