PHPMailer and dBug plugin refactoring