String smtpSocFac = "org.cougaar.core.mts.email.SmtpTimeoutSocketFactory";
String smtpSocFac = "org.cougaar.mts.std.email.SmtpTimeoutSocketFactory";
  private static Session getSmtpSession (MailBox mbox) throws Exception  {    //  SMTP socket factory initialization    String smtpSocFac = "org.cougaar.core.mts.email.SmtpTimeoutSocketFactory";    if (SmtpTimeoutSocketFactory.getServiceBroker() == null)    {      SmtpTimeoutSocketFactory.setServiceBroker (serviceBroker);      SmtpTimeoutSocketFactory.setSocketTimeout (smtpSocketTimeout);    }    //  Set the properties for the session and get a Session object    Properties props = new Properties();    props.put ("mail.smtp.host", mbox.getServerHost());    props.put ("mail.smtp.port", mbox.getServerPort());    props.put ("mail.smtp.socketFactory.class", smtpSocFac);    props.put ("mail.smtp.socketFactory.fallback", "false");    props.put ("mail.debug", (debugSmtp ? "true" : "false"));    Session session = Session.getInstance (props);  // note not a (potentially) shared session    return session;  }