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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i hapi-maildev

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT License

    Last publish

    Collaborators

    • dfl