You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2007/10/24 07:05:51 UTC

svn commit: r587790 - /portals/jetspeed-2/trunk/jetspeed-api/src/main/java/org/apache/jetspeed/administration/PortalAdministration.java

Author: taylor
Date: Tue Oct 23 22:05:51 2007
New Revision: 587790

URL: http://svn.apache.org/viewvc?rev=587790&view=rev
Log:
make sendEmail public api

Modified:
    portals/jetspeed-2/trunk/jetspeed-api/src/main/java/org/apache/jetspeed/administration/PortalAdministration.java

Modified: portals/jetspeed-2/trunk/jetspeed-api/src/main/java/org/apache/jetspeed/administration/PortalAdministration.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/jetspeed-api/src/main/java/org/apache/jetspeed/administration/PortalAdministration.java?rev=587790&r1=587789&r2=587790&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/main/java/org/apache/jetspeed/administration/PortalAdministration.java (original)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/main/java/org/apache/jetspeed/administration/PortalAdministration.java Tue Oct 23 22:05:51 2007
@@ -22,6 +22,8 @@
 import javax.portlet.PortletConfig;
 import javax.portlet.PortletRequest;
 import javax.portlet.PortletResponse;
+
+import org.apache.jetspeed.administration.AdministrationEmailException;
 import org.apache.jetspeed.security.User;
 
 /**
@@ -104,6 +106,17 @@
                           String templatePath,
                           Map userAttributes)
         throws AdministrationEmailException;
+    
+    /**
+     * Helper to send an email to a recipient without the portal default sender, and without mail merge
+     * 
+     * @param from the email address of the sender
+     * @param subject the subject of the email
+     * @param to the recipient email address
+     * @param text the message text
+     * @throws AdministrationEmailException
+     */
+    public void sendEmail(String from, String subject, String to, String text) throws AdministrationEmailException;    
     
     /**
      * Lookup a user given an email address



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org