5 Replies Latest reply on Feb 18, 2011 5:26 AM by Rohit Wadke

    Can't send mail

    Michael Schuetz Novice

      Hi,

       

      I need the portal to send mails.

       

      configuration.properties:

      gatein.email.smtp.username=
      gatein.email.smtp.password=
      gatein.email.smtp.host=localhost
      gatein.email.smtp.port=3025
      gatein.email.smtp.starttls.enable=true
      gatein.email.smtp.auth=false
      gatein.email.smtp.socketFactory.port=465
      gatein.email.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory

       

      I do use Greenmail for local testing. It runs as SAR in container. I am able to send Mails via JMX as well as via telnet manually.

       

      My main problem is, that everything I get is "Can't send mail" within Portal web UI.

      Can't find any helpful information about that in server-logs.

       

      Do I need to configure sth?

       

      Platform: GateIn3.1, AS5.1, Postgres8.4, Greenmail 1.3

       

      BTW: Portal does not send mails with default Gmail-config, as well.

       

      Help is much appreciated.

       

       

      Thanks an regards

      Michael

        • 1. Re: Can't send mail
          Arnaud Heritier Newbie

          I suppose you don't use SSL nor login for SMTP thus your config should b something like that :

           

          gatein.email.smtp.username=
          gatein.email.smtp.password=
          gatein.email.smtp.host=localhost
          gatein.email.smtp.port=3025
          gatein.email.smtp.starttls.enable=false
          gatein.email.smtp.auth=false
          gatein.email.smtp.socketFactory.port=
          gatein.email.smtp.socketFactory.class=
          • 2. Re: Can't send mail
            Michael Schuetz Novice

            Great. This one works for me.

             

            Thanks.

            • 3. Can't send mail
              Rohit Wadke Newbie

              hello Sir,

               

              Please send me setting which i have to do for sending mail.

              I am getting following error

               

              org.jbpm.api.JbpmException: could not send email: javax.mail.internet.MimeMessage@2f60ce

                        at org.jbpm.pvm.internal.email.impl.MailSessionImpl.send(MailSessionImpl.java:60)

                        at org.jbpm.jpdl.internal.activity.MailActivity.perform(MailActivity.java:44)

                        at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:15)

                        at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)

                        at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:656)

                        at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:616)

                        at org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:217)

                        at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:65)

                        at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:38)

                        at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)

                        at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)

                        at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)

                        at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)

                        at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)

                        at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)

                        at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:66)

                        at myPack.myController.startProcess1(myController.java:94)

                        at myPack.myController.doAfterCompose(myController.java:40)

                        at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:712)

                        at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:658)

                        at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:602)

                        at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:569)

                        at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:369)

                        at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:291)

                        at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:243)

                        at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:164)

                        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

                        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

                        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

                        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

                        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

                        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

                        at java.lang.Thread.run(Thread.java:619)

              Caused by: javax.mail.SendFailedException: Invalid Addresses;

                nested exception is:

                        com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for rohit.wadke@productivityparadigms.com

              • 4. Can't send mail
                Marko Strukelj Master

                I don't see how your problem is related to GateIn, but from your stacktrace it looks like your JBPM mail sending servlet properly connected to your SMTP server which is configured to reject the specific mail you were sending to. This typically happens due to domain mismatch, to prevent spammers from misusing your mail server.

                 

                Looks like the problem is your mail server config ... Otherwise try JBPM forums for more help.

                • 5. Can't send mail
                  Rohit Wadke Newbie

                  Thank You Marko...

                   

                  But will you please send me any solution...