Php Email class modified to use PHPMailer library.