0 Replies Latest reply on Apr 2, 2006 11:38 AM by angel gonzalez

    Send Email whith Jboss Portal

    angel gonzalez Newbie

      I have a Smtp server on localhost, 25 port
      I have this code:

      ...

      MailModule module2 = (MailModule)getPortletContext().getAttribute("MailModule");
      if(module2 != null ){
      module2.send("user@dom.com","user2@dom.com","hello User","hello");
      }

      ...

      Jboss portal throw this exception:

      17:25:23,111 INFO [STDOUT] Error2:java.lang.IllegalArgumentException: Unable to find operation send(java.lang.String,java.lang.String,java.lang.String,java.lang.String)


      I need help.

      Thanks