wp-email
v0.0.1
Published
wp smtp email plugin
Downloads
2
Readme
Coidea Email Plugin for Hapi
var emailServer={
host:'smtp.xxx.com',
port:'465',
ssl:true,
username:'[email protected]',
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:'[email protected]',
text:'test email',
subject:subj,
html:"<p>test</p>"
}
server.methods.sendEmail(notifyEmail,callback)
})