inorder to get url works inside the mailer