public static InternetAddress getInternetAddress(EmailContact emailContact) throws SeamMailException { try { return new InternetAddress( emailContact.getEmailAddress(), emailContact.getName(), emailContact.getCharset()); } catch (UnsupportedEncodingException e) { throw new SeamMailException("Unable convert recipient to InternetAddress", e); } }