|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.module.Module
org.mmbase.module.AbstractSendMail
org.mmbase.module.JMSendMail
Module providing mail functionality based on JavaMail, mail-resources.
| Field Summary | |
static java.lang.String |
DEFAULT_MAIL_ENCODING
|
static java.lang.String |
mailEncoding
|
protected javax.mail.Session |
session
|
| Constructor Summary | |
JMSendMail()
|
|
| Method Summary | |
protected javax.mail.internet.MimeMessage |
constructMessage(java.lang.String from,
java.lang.String to,
java.util.Map headers)
Utility method to do the generic job of creating a MimeMessage object and setting its recipients and 'from'. |
java.lang.String |
getModuleInfo()
provide some info on the module |
void |
init()
Initializes the module. Init must 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. |
void |
reload()
{@inheritDoc} |
boolean |
sendMail(java.lang.String from,
java.lang.String to,
java.lang.String data,
java.util.Map headers)
Send mail with headers |
| Methods inherited from class org.mmbase.module.AbstractSendMail |
expand, onload, sendMail, sendMail, verify |
| Methods inherited from class org.mmbase.module.Module |
getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModules, getName, getProperties, getProperty, getVersion, hasStarted, 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 |
| Field Detail |
public static final java.lang.String DEFAULT_MAIL_ENCODING
public static java.lang.String mailEncoding
protected javax.mail.Session session
| Constructor Detail |
public JMSendMail()
| Method Detail |
public void reload()
public void init()
Module.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead.
init in class Module
protected javax.mail.internet.MimeMessage constructMessage(java.lang.String from,
java.lang.String to,
java.util.Map headers)
throws javax.mail.MessagingException
javax.mail.MessagingException
public boolean sendMail(java.lang.String from,
java.lang.String to,
java.lang.String data,
java.util.Map headers)
public java.lang.String getModuleInfo()
Module
getModuleInfo in class Module
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||