Write File and Send e-mail PHPMailer