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 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 Throwable
Overrides:
finalize in class Object
Throws:
Throwable

prepareAndSendMail

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

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

sendMail

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

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


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