1 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 23 abstract public class AbstractSendMail extends Module implements SendMailInterface { 24 25 public void onload() { } 26 27 30 public boolean sendMail(String from, String to, String data) { 31 return sendMail(from, to, data, null); 32 } 33 34 37 public boolean sendMail(Mail mail) { 38 return sendMail(mail.from, mail.to, mail.text, mail.headers); 39 } 40 41 44 public String verify(String name) { 45 throw new UnsupportedOperationException ("cannot verify e-mail"); 46 } 47 48 51 public List expand(String name) { 52 throw new UnsupportedOperationException ("cannot expand e-mail"); 53 } 54 55 56 } 57 | Popular Tags |