code: public void send(final Message msg) throws MailException {
  		Transport transport = null;
  		try {
  			if (log.isDebugEnabled()) {
  				log.debug("Sending mail message [subject={}, recipients={}]", msg.getSubject(),
  						on(", ").join(msg.getAllRecipients()));
  			}
  			transport = sessionProvider.get().getTransport();
  			transport.connect();
  			transport.sendMessage(msg, msg.getAllRecipients());
  		} catch (MessagingException ex) {
  			throw new MailException("Error sending mail message", ex);
  		} finally {
  			try {
  				transport.close();
  			} catch (MessagingException ex) {
  				log.error(ex.getMessage(), ex);
  			}
  		}
  	}
docs: Sends the specified message.
  
  @param msg
  the message to send
  @throws MailException
  if an error occurred sending the message