Example #1
0
 /**
  * Add MimeMessage to deliver it.
  *
  * @param msg MimeMessage to deliver.
  * @throws MessagingException If delivery add failed.
  */
 protected void add(MimeMessage msg) throws MessagingException {
   if (!deliveryManager.isAlive()) {
     deliveryManager.start();
   }
   deliveryManager.add(msg);
 }
Example #2
0
 public void start() {
   if (!deliveryManager.isAlive()) {
     deliveryManager.start();
   }
 }