The blog for Infomatrix and the personal blog of @kmandrup
To run it:
$ npm install
$ npm start
$ open localhost:3000
Add a file config/mail.config.json
with your Mailgun settings.
{
"service": "Mailgun",
"auth": {
"user": '[email protected]',
},
"debug": true
}
heroku config:add mailpass=password
heroku config:add mailuser=kmandrup@
This is picked up by mailgun config:
# mail/contact.ls
mail-config.auth.user = process.env.mailuser
mail-config.auth.pass = process.env.mailpass
Try with "mailgun-js": "^0.6.5"
to use Mailgun API directly!
See mailgun-js