To use the MailLogger class you have to supply a valid reference to a class.phpmailer.php file and in general to a phpMailer class (you can find it )