some better error handling for PHPMailerDriver.php, some fixes for sending test mail, some other changes