code: private void doGetMailSetting() throws PageException {
  	Struct sct = new StructImpl();
  	pageContext.setVariable(getString("admin", action, "returnVariable"), sct);
  
  	int maxThreads = 20;
  	SpoolerEngine engine = config.getSpoolerEngine();
  	if (engine instanceof SpoolerEngineImpl) {
  	    maxThreads = ((SpoolerEngineImpl) engine).getMaxThreads();
  	}
  
  	sct.set("spoolEnable", Caster.toBoolean(config.isMailSpoolEnable()));
  	sct.set("spoolInterval", Caster.toInteger(config.getMailSpoolInterval()));
  	sct.set("maxThreads", Caster.toDouble(maxThreads));
  	sct.set("timeout", Caster.toInteger(config.getMailTimeout()));
  	sct.set("defaultencoding", config.getMailDefaultCharset().name());
  
      }
docs: @throws PageException