It was a mistake to send the kession. in the end I used:
EmailWorkItemHandler handler = new EmailWorkItemHandler();
handler.setConnection( "mail.smtp.host", "myemailPort", null, null );
ksession.getWorkItemManager().registerWorkItemHandler("EMail", handler);