hapi-maildev
v0.1.0
Published
Maildev plugin for hapi
Downloads
5
Readme
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);