Class AbstractSendMail

  extended byorg.mmbase.module.Module
      extended byorg.mmbase.module.AbstractSendMail
All Implemented Interfaces:
Direct Known Subclasses:
JMSendMail, SendMail

public abstract class AbstractSendMail
extends Module
implements SendMailInterface

This module provides mail functionality

Michiel Meeuwissen

Constructor Summary
Method Summary
 java.util.List expand(java.lang.String name)
          gives all the members of a mailinglist
 void onload()
          prepares the module when loaded.
 boolean sendMail(Mail mail)
          Send mail
 boolean sendMail(java.lang.String from, java.lang.String to, java.lang.String data)
          Send mail without extra headers
 java.lang.String verify(java.lang.String name)
          checks the e-mail address
Methods inherited from class org.mmbase.module.Module
getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModuleInfo, getModules, getName, getProperties, getProperty, getVersion, hasStarted, init, loadModulesFromDisk, maintainance, setInitParameter, setMaintainer, setName, setVersion, shutdown, shutdownModules, startModule, startModules, state
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.mmbase.module.SendMailInterface

Constructor Detail


public AbstractSendMail()
Method Detail


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.

Specified by:
onload in class Module


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

Specified by:
sendMail in interface SendMailInterface


public boolean sendMail(Mail mail)
Send mail

Specified by:
sendMail in interface SendMailInterface


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

Specified by:
verify in interface SendMailInterface


public java.util.List expand(java.lang.String name)
gives all the members of a mailinglist

Specified by:
expand in interface SendMailInterface

MMBase build