Finish email sending code, add some wiring between the view and the controller.