Implements emailing access urls, and the logic on those urls