public class EmailHelper extends Object
An email helper:
Hashtable mail = new Hashtable(); mail.put("from", "dion@almaer.com"); mail.put("to", "dion@almaer.com"); mail.put("subject", "a subject"); mail.put("body", "the body"); <p> EmailHelper.sendmail(mail);Currently only supports one email in to address
Constructor and Description |
---|
EmailHelper() |
Modifier and Type | Method and Description |
---|---|
String |
evaluateMvelExpresssion(String expr,
Map<String,Serializable> ctx)
Evaluates a MVEL expression within some context infos accessible on the
"NotificationContext" object.
|
static Session |
newSession(Properties props)
Instantiate a new session that authenticate given the protocol's properties.
|
void |
sendmail(Map<String,Object> mail)
Static Method: sendmail(Map mail).
|
public void sendmail(Map<String,Object> mail) throws Exception
mail
- A map of the settingsException
public static Session newSession(Properties props)
public String evaluateMvelExpresssion(String expr, Map<String,Serializable> ctx) throws ClientException
expr
- ctx
- ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.