moved to PDO, mail.php handling the pipe