added local url and public url for emails