org.mmbase.applications.email
Class AbstractSendMail

java.lang.Object
  extended byorg.mmbase.util.functions.FunctionProvider
      extended byorg.mmbase.module.Module
          extended byorg.mmbase.applications.email.AbstractSendMail
All Implemented Interfaces:
SendMailInterface, SendMailInterface
Direct Known Subclasses:
SendMail

public abstract class AbstractSendMail
extends Module
implements SendMailInterface

This module provides mail functionality

Author:
Michiel Meeuwissen
Class for Application :
Mail

Field Summary
 
Fields inherited from class org.mmbase.module.Module
getMaintainerFunction, getVersionFunction
 
Fields inherited from class org.mmbase.util.functions.FunctionProvider
functions, getFunctions
 
Constructor Summary
AbstractSendMail()
           
 
Method Summary
 List expand(String name)
          gives all the members of a mailinglist
 void onload()
          prepares the module when loaded.
 boolean sendMail(Mail mail)
          Send mail
 boolean sendMail(String from, String to, String data)
          Send mail without extra headers
 String verify(String name)
          checks the e-mail address
 
Methods inherited from class org.mmbase.module.Module
getInitParameter, getInitParameters, getMaintainer, getModule, getModule, getModuleInfo, getModuleLoader, getModuleReader, getModules, getName, getProperties, getProperty, getVersion, hasStarted, init, maintainance, setInitParameter, setMaintainer, setName, setVersion, shutdown, shutdownModules, startModule, startModules, state
 
Methods inherited from class org.mmbase.util.functions.FunctionProvider
addFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mmbase.applications.email.SendMailInterface
sendMultiPartMail
 
Methods inherited from interface org.mmbase.module.SendMailInterface
sendMail
 

Constructor Detail

AbstractSendMail

public AbstractSendMail()
Method Detail

onload

public void onload()
Description copied from class: Module
prepares the module when loaded. Onload must be overridden to execute methods that need to be performed when the module is loaded but before any other modules are initailized.
This method is called by Module.startModules(). You should not call onload() directly.

Overrides:
onload in class Module

sendMail

public boolean sendMail(String from,
                        String to,
                        String data)
Send mail without extra headers

Specified by:
sendMail in interface SendMailInterface

sendMail

public boolean sendMail(Mail mail)
Send mail

Specified by:
sendMail in interface SendMailInterface

verify

public String verify(String name)
checks the e-mail address

Specified by:
verify in interface SendMailInterface

expand

public List expand(String name)
gives all the members of a mailinglist

Specified by:
expand in interface SendMailInterface


MMBase build 1.8.1.20060716