Package com.cosmo.comm

Examples of com.cosmo.comm.Message


   public PageContext formSendedEvent(PageContext pc, HttpServletRequest request, HttpServletResponse response)
   {
      try
      {
         // Genera el mensaje
         Message message = new Message();
         message.setFrom(getWorkspace().getProperties().getString(Cosmo.PROPERTY_WORKSPACE_MAIL));
         message.addReceipient(new InternetAddress(HttpRequestUtils.getValue(request, "txtMail"), HttpRequestUtils.getValue(
               request, "txtName")));
         message.setHtmlBody(HttpRequestUtils.getValue(request, "txtBody"));

         // Envia el mensaje
         CommunicationsFactory.sendMessage(getWorkspace(), message);

         DynamicMessageControl msg = (DynamicMessageControl) pc.getControl(ID_MSG);
View Full Code Here

TOP

Related Classes of com.cosmo.comm.Message

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.