diff --git a/README.md b/README.md index 3bae72a..de7f82a 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,9 @@ If you want to send emails (necessary to confirm users) you need to set the stdout. The process is [explained on the Meteor docs](http://docs.meteor.com/#email). -You can also change mail settings in `server/accounts.coffee`. +In the mails sent by Homework, the website links point to the `ROOT_URL` +environment variable as +[explained on the Meteor docs](http://docs.meteor.com/#meteor_absoluteurl). ### License The MIT License (MIT) diff --git a/server/accounts.coffee b/server/accounts.coffee index 43b78a8..fb72f3f 100644 --- a/server/accounts.coffee +++ b/server/accounts.coffee @@ -21,5 +21,6 @@ Accounts.validateNewUser (user) -> Accounts.emailTemplates.siteName = "Homework App" Accounts.emailTemplates.verifyEmail.text = (user,url) -> urlist = url.split('/'); token = urlist[urlist.length-1] + url = Meteor.absoluteUrl 'verify/'+token '''Welcome to Homework! To activate your account, click on the \ - following link: http://homework.meteor.com/verify/'''+token + following link: '''+url