info.magnolia.module.mail.handlers
Class ThreadedMailHandler

java.lang.Object
  extended by info.magnolia.module.mail.handlers.ThreadedMailHandler
All Implemented Interfaces:
MgnlMailHandler

public class ThreadedMailHandler
extends java.lang.Object
implements MgnlMailHandler

This class is meant to allow async emails ... The mail is posted and send. Note that mail success or failure is only displayed in the logs. Date: Mar 31, 2006 Time: 5:51:38 PM

Author:
Nicolas Modrzyk

Method Summary
protected  void finalize()
           
 void prepareAndSendMail(MgnlEmail email)
          Prepare the email (format it) and send it.
 void sendMail(MgnlEmail email)
          Send the email as is, without touching it.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

prepareAndSendMail

public void prepareAndSendMail(MgnlEmail email)
                        throws java.lang.Exception
Prepare the email (format it) and send it.

Specified by:
prepareAndSendMail in interface MgnlMailHandler
Parameters:
email - the email to send
Throws:
java.lang.Exception - if fails

sendMail

public void sendMail(MgnlEmail email)
              throws java.lang.Exception
Send the email as is, without touching it.

Specified by:
sendMail in interface MgnlMailHandler
Parameters:
email - the email to send
Throws:
java.lang.Exception - if fails


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.