Nimble Polyglot Microcosm

hapi-maildev

0.1.0 • Public • Published

hapi-maildev

start maildev instance when hapi app start:

server.pack.register({
  plugin: require('hapi-maildev'),
  options: {
    smtp: 1025,
    outgoingHost: 'email-smtp.us-west-2.amazonaws.com',
    outgoingUser: 'AAABBBCCCDDDEEEFFF12',
    outgoingPass: '.. pass ..',
    open: true,
    web: 1080
  }
}, pluginErrorHandler);
 

then configure hapi-mailer:

server.pack.register({
  plugin: require('hapi-mailer'),
  options: {
    transport: {
      secure: true,
      host: 'localhost',
      port: 1025
    }, 
    views: {
      engines: {
        html: {
          module: require('handlebars'),
          path: __dirname + '/lib/views/emails'
        }
      }
    }
  }
}, pluginErrorHandler);

install

npm i hapi-maildev

Downloadsweekly downloads

2

version

0.1.0

license

MIT License

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability