Use heroku environmental configuration to define the url for mail messages
Ensure all pages are redirected to bare domain