fix mailer settings so that urls in emails is correct in all environments