Replaced before_filter with before_action in email_controller.rb