README
Coidea Email Plugin for Hapi
var emailServer={
host:'smtp.xxx.com',
port:'465',
ssl:true,
username:'xxx@xxx.com',
password:'xxxxxx',
dev:true
}
server.pack.require('coidea-email',emailServer,function(err){
// do somthing
//e.g send email
var notifyEmail={
from:'xxxx',// must be same with your server setup
to:'xx@xx.com',
text:'test email',
subject:subj,
html:"<p>test</p>"
}
server.methods.sendEmail(notifyEmail,callback)
})