diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-03-26 12:29:06 +0100 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-03-26 12:29:06 +0100 |
commit | 62424695f75791a63ad7b126ed326268069eefdd (patch) | |
tree | 96b0ae326ce21d43b51183e03f972169f70204d0 | |
parent | copied braitsches email dispatcher to have something to work on (diff) | |
download | Divid-62424695f75791a63ad7b126ed326268069eefdd.tar.gz |
added email dispatcher
-rw-r--r-- | modules/email-dispatcher.js | 9 | ||||
-rw-r--r-- | package.json | 3 |
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/email-dispatcher.js b/modules/email-dispatcher.js index 3918d0b..b0c40a2 100644 --- a/modules/email-dispatcher.js +++ b/modules/email-dispatcher.js @@ -1,5 +1,5 @@ -var ES = require('./email-settings'); +var ES = require('../config/email-settings'); var EM = {}; module.exports = EM; @@ -25,13 +25,12 @@ EM.dispatchResetPasswordLink = function(account, callback) EM.composeEmail = function(o) { - var link = 'http://node-login.braitsch.io/reset-password?e='+o.email+'&p='+o.pass; + var link = 'https://divid.no/reset-password?e='+o.email+'&p='+o.pass; var html = "<html><body>"; html += "Hi "+o.name+",<br><br>"; html += "Your username is :: <b>"+o.user+"</b><br><br>"; html += "<a href='"+link+"'>Please click here to reset your password</a><br><br>"; - html += "Cheers,<br>"; - html += "<a href='http://twitter.com/braitsch'>braitsch</a><br><br>"; + html += "Cheers<br>"; html += "</body></html>"; return [{data:html, alternative:true}]; -}
\ No newline at end of file +} diff --git a/package.json b/package.json index 7ae20a5..b244bc5 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "express": "3.1.0", "ejs": "*", "mongoose": "*", - "connect": "*" + "connect": "*", + "emailjs": "*" } } |