org.mmbase.module
Class SendMail
java.lang.Object
|
+--org.mmbase.module.Module
|
+--org.mmbase.module.SendMail
- All Implemented Interfaces:
- SendMailInterface
- public class SendMail
- extends Module
- implements SendMailInterface
This module provides mail functionality
- Author:
- Rob Vermeulen
|
Method Summary |
java.util.Vector |
expand(java.lang.String name)
gives all the members of a mailinglist |
java.lang.String |
getModuleInfo()
provide some info on the module |
void |
init()
Initializes the module. |
void |
onload()
|
void |
reload()
|
boolean |
sendMail(Mail mail)
Send mail |
boolean |
sendMail(java.lang.String from,
java.lang.String to,
java.lang.String data)
Send mail |
boolean |
sendMail(java.lang.String from,
java.lang.String to,
java.lang.String data,
java.util.Hashtable headers)
Send mail with headers |
void |
shutdown()
|
void |
unload()
|
java.lang.String |
verify(java.lang.String name)
checks the e-mail address |
| Methods inherited from class org.mmbase.module.Module |
getClassName, getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModules, getName, getProperties, getProperty, getVersion, hasStarted, loadModulesFromDisk, maintainance, setClassName, setInitParameter, setMaintainer, setName, setVersion, startModule, startModules, state |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SendMail
public SendMail()
reload
public void reload()
unload
public void unload()
onload
public void onload()
- Overrides:
onload in class Module
shutdown
public void shutdown()
init
public void init()
- Description copied from class:
Module
- Initializes the module.
Init can be overridden to read the environment variables it needs.
This method is called by Module.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead.
- Overrides:
init in class Module
sendMail
public boolean sendMail(java.lang.String from,
java.lang.String to,
java.lang.String data)
- Send mail
- Specified by:
sendMail in interface SendMailInterface
sendMail
public boolean sendMail(java.lang.String from,
java.lang.String to,
java.lang.String data,
java.util.Hashtable headers)
- Send mail with headers
- Specified by:
sendMail in interface SendMailInterface
sendMail
public boolean sendMail(Mail mail)
- Send mail
- Specified by:
sendMail in interface SendMailInterface
verify
public java.lang.String verify(java.lang.String name)
- checks the e-mail address
- Specified by:
verify in interface SendMailInterface
expand
public java.util.Vector expand(java.lang.String name)
- gives all the members of a mailinglist
- Specified by:
expand in interface SendMailInterface
getModuleInfo
public java.lang.String getModuleInfo()
- Description copied from class:
Module
- provide some info on the module
- Overrides:
getModuleInfo in class Module
MMBase 2001