info.magnolia.module.mail.handlers
Class SimpleMailHandler

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

public class SimpleMailHandler
extends Object
implements MgnlMailHandler

This is a simple util class to send email from the form pages ... This class was previously included inside the jsp related to the form.

Version:
$Id $
Author:
niko

Constructor Summary
SimpleMailHandler()
           
 
Method Summary
 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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMailHandler

public SimpleMailHandler()
Method Detail

prepareAndSendMail

public void prepareAndSendMail(MgnlEmail email)
                        throws Exception
Description copied from interface: MgnlMailHandler
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
Description copied from interface: MgnlMailHandler
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-2013 Magnolia International Ltd.. All Rights Reserved.