public void send(Message message){
  Transport smtp=null;
  try {
    smtp=_session.getTransport("smtp");
    smtp.connect();
    smtp.send(message,_to);
    log.fine(this + " sent mail to " + _to[0]);
  }
 catch (  RuntimeException e) {
    throw e;
  }
catch (  Exception e) {
    throw new RuntimeException(e);
  }
 finally {
    try {
      if (smtp != null)       smtp.close();
    }
 catch (    Exception e) {
      log.log(Level.FINER,e.toString(),e);
    }
  }
}

public void send ( Message message ) { Transport smtp = null ; try { smtp = _session . getTransport ( "smtp" ) ; smtp . connect ( ) ; smtp . send ( message , _to ) ; log . fine ( this + " sent mail to " + _to [ 0 ] ) ; } catch ( RuntimeException e ) { throw e ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } finally { try { if ( smtp != null ) smtp . close ( ) ; } catch ( Exception e ) { log . log ( Level . FINER , e . toString ( ) , e ) ; } } }
sends to a mailbox
