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