Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.ec.notification.email
Class EmailHelper

java.lang.Object
  extended by org.nuxeo.ecm.platform.ec.notification.email.EmailHelper

public class EmailHelper
extends java.lang.Object

Class EmailHelper.

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

Author:
Narcis Paslaru, Thierry Martins

Constructor Summary
EmailHelper()
           
 
Method Summary
 void sendmail(java.util.Map<java.lang.String,java.lang.Object> mail)
          Static Method: sendmail(Map mail).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailHelper

public EmailHelper()
Method Detail

sendmail

public void sendmail(java.util.Map<java.lang.String,java.lang.Object> mail)
              throws java.lang.Exception
Static Method: sendmail(Map mail).

Parameters:
mail - A map of the settings
Throws:
java.lang.Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.