Reconfigured sendmail-class to use PHPMailer