Amended mail.php