Use HtwgServerResultPublisher:
IResultPublisher pub = new HtwgServerResultPublisher();
publisher.publishResult("04backgammon", "Player1", 1L);
Use EmailResultPublisher:
IResultPublisher pub = new EmailResultPublisher();
Map<String, String> conf = new HashMap<String, String>();
conf.put("recipient", "[email protected]");
conf.put("sender", "[email protected]");
conf.put("mailserver", "smtp.gmail.com");
conf.put("port", "465");
conf.put("username", "user");
conf.put("password", "password");
pub.configurePublisher(conf);
pub.publishResult("game1", "player1", 12345L);
ONLY SUPPORTS SMTP/SSH (gmail etc.)