class SmtpClient {

  static final InternetAddress[] transform(Set<String> _recipients) {
    Set<InternetAddress> recipients = new HashSet<InternetAddress>();
    for (String to : _recipients) {
      try {
        recipients.add(InternetAddress.parse(to)[0]);
      } catch (AddressException e) {
        log.error("[" + to + "] is not a valid email address");
      }
    }
    return recipients.toArray(new InternetAddress[recipients.size()]);
  }

  public  SmtpClient();

}