Пример #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);
 }
Пример #2
0
 public void shutdown() {
   deliveryManager.shutdown();
 }
Пример #3
0
 public void start() {
   if (!deliveryManager.isAlive()) {
     deliveryManager.start();
   }
 }
Пример #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);
 }