added new class EmailHandler.php