KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > applications > email > AbstractSendMail


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.applications.email;
11
12 import java.util.*;
13
14 import org.mmbase.module.Module;
15 import org.mmbase.util.*;
16
17 /**
18  * This module provides mail functionality
19  *
20  * @application Mail
21  * @author Michiel Meeuwissen
22  */

23 abstract public class AbstractSendMail extends Module implements SendMailInterface {
24
25     public void onload() { }
26
27     /**
28      * Send mail without extra headers
29      */

30     public boolean sendMail(String JavaDoc from, String JavaDoc to, String JavaDoc data) {
31         return sendMail(from, to, data, null);
32     }
33
34     /**
35      * Send mail
36      */

37     public boolean sendMail(Mail mail) {
38         return sendMail(mail.from, mail.to, mail.text, mail.headers);
39     }
40
41     /**
42      * checks the e-mail address
43      */

44     public String JavaDoc verify(String JavaDoc name) {
45         throw new UnsupportedOperationException JavaDoc("cannot verify e-mail");
46     }
47
48     /**
49      * gives all the members of a mailinglist
50      */

51     public List expand(String JavaDoc name) {
52         throw new UnsupportedOperationException JavaDoc("cannot expand e-mail");
53     }
54
55
56 }
57
Popular Tags