KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > mail > handlers > MgnlMailHandler


1 package info.magnolia.cms.mail.handlers;
2
3 import info.magnolia.cms.mail.templates.MgnlEmail;
4
5
6 /**
7  * Date: Mar 30, 2006 Time: 1:06:23 PM
8  * @author <a HREF="mailto:niko@macnica.com">Nicolas Modrzyk</a>
9  */

10 public interface MgnlMailHandler {
11
12     /**
13      * Prepare the email (format it) and send it
14      * @param email the email to send
15      * @throws Exception if fails
16      */

17     void prepareAndSendMail(MgnlEmail email) throws Exception JavaDoc;
18
19     /**
20      * Send the email as is, without touching it
21      * @param email the email to send
22      * @throws Exception if fails
23      */

24     void sendMail(MgnlEmail email) throws Exception JavaDoc;
25
26 }
27
Popular Tags