ELogin
Enterprise Lab AAI Login Application
Static Public Member Functions | Static Public Attributes
ch.enterpriselab.login.util.Util Class Reference

List of all members.

Static Public Member Functions

static void sendMail (String toAddress, String subject, String content)

Static Public Attributes

static final String CONFIG_DIR = getConfigPath()
static final String SCRIPT_TEMPLATE_DIR = ConfigurationManager.getInstance().getScriptTemplateDir()
static final String DEFAULT_SCRIPT_TEMPLATE = ConfigurationManager.getInstance().getDefaultScriptTemplate()

Detailed Description

Different Helper Functions

Author:
mla

Member Function Documentation

static void ch.enterpriselab.login.util.Util.sendMail ( String  toAddress,
String  subject,
String  content 
) [static]

Send Mail through the Tomcat infrastructur Tomcat 6 includes a standard resource factory that will create javax.mail.Session session instances. In this way, the application is totally insulated from changes in the email server configuration environment. Requirements: Copy the libraries activation.jar (Java Activation Framework API) and mail.jar (JavaMail API) in the Tomcat endorsed/library Folder.

See also:
http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html#JavaMail_Sessions
Parameters:
toAddressEmailaddress recipient
subjectSubject of the Mail
contentText inside the Email

Here is the caller graph for this function:


Member Data Documentation

final String ch.enterpriselab.login.util.Util.CONFIG_DIR = getConfigPath() [static]
final String ch.enterpriselab.login.util.Util.DEFAULT_SCRIPT_TEMPLATE = ConfigurationManager.getInstance().getDefaultScriptTemplate() [static]
final String ch.enterpriselab.login.util.Util.SCRIPT_TEMPLATE_DIR = ConfigurationManager.getInstance().getScriptTemplateDir() [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables