Added automatic emailing once user returns from client view.