コード例 #1
0
ファイル: MailUtility.java プロジェクト: ALRubinger/testMail
 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);
   }
 }