public String[] getAllToAddresses() {
    return (String[]) mailToSet.toArray(new String[0]);
  }
@return list all the registered email id
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MailManager.java