updating EmailService.class.php