code: public void registerConnectionInfo(String host, int port) {
          assertArgumentNotNull("passhostword", host);
          final Properties props = session.getProperties();
          props.setProperty(resolveProtocolKey(MAIL_SMTP_HOST), host);
          props.setProperty(resolveProtocolKey(MAIL_SMTP_PORT), String.valueOf(port));
      }
docs: ========