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 shutdown() {
   deliveryManager.shutdown();
 }
Example #3
0
 public void start() {
   if (!deliveryManager.isAlive()) {
     deliveryManager.start();
   }
 }
Example #4
0
 /**
  * Remove an email from delivery.
  *
  * @param mailid Unique Aspirin ID of this email.
  * @throws MessagingException If removing failed.
  */
 public void remove(String mailid) throws MessagingException {
   deliveryManager.remove(mailid);
 }