Adds in the last step of emailing email addresses on server, actually calling the functionality when a session ends or is created.