private void createConnection(String server){
  Properties props=System.getProperties();
  props.put("mail.smtp.host",server);
  LOG.debug("createConnection() - The connection with the mail server has been created");
  this.session=Session.getInstance(props,null);
}

private void createConnection ( String server ) { Properties props = System . getProperties ( ) ; props . put ( "mail.smtp.host" , server ) ; LOG . debug ( "createConnection() - The connection with the mail server has been created" ) ; this . session = Session . getInstance ( props , null ) ; }
it creates a connection to the specified mail server
