Update mail_controller.php