Update app/controllers/emails_controller.rb