From 62424695f75791a63ad7b126ed326268069eefdd Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 26 Mar 2013 12:29:06 +0100 Subject: added email dispatcher --- modules/email-dispatcher.js | 9 ++++----- 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 += "Hi "+o.name+",

"; html += "Your username is :: "+o.user+"

"; html += "Please click here to reset your password

"; - html += "Cheers,
"; - html += "braitsch

"; + html += "Cheers
"; 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": "*" } } -- cgit v1.2.3