4 Replies Latest reply on Aug 4, 2008 10:01 PM by deanhiller2000

    mail in seam giving no errors

    deanhiller2000

      very nasty issue so putting it down for others


      search terms maybe
      1. seam mail not working
      2. seam mail not failing
      3. no exception with seam mail


      Answer, don't forget the jboss-seam-mail.jar.  If you do, it reports that everything succeeded and mail was sent(and it wasn't).  Even if you change host to xxxx or blank, it pretends to send mail.  Spent 2 hours solid pulling my hair out.
      later,
      dean

        • 1. Re: mail in seam giving no errors
          sandeepjindal

          Hi Dean,


          Could you please explain this a bit more . I am facing the exact problem. The mail is not being sent (i am providing the non-existent email id) still it does not give me any exception. Please help.


          Best Regards,
          Sandeep

          • 2. Re: mail in seam giving no errors
            deanhiller2000

            sure, jboss-seam-mail.jar(or whatever it was called) was not in WEB-INF/lib.  get that in there and then you will at least see exceptions like classnotFound I think as it tries to get the other jars...I don't know why I don't get a classnotfound when my mail jar is not there(weird)....other jars that you need are mail.jar, activation.jar I think too.


            hope that helps a little.
            later,
            dean

            • 3. Re: mail in seam giving no errors
              pmuir

              Nonsense. Stop spreading FUD.

              • 4. Re: mail in seam giving no errors
                deanhiller2000

                hmm, does that mean you can't reproduce the issue by removing the jboss-seam-mail.jar....maybe it had something to do with my environment.  I will try to reproduce again sometime.  The only thing I am certain was mail would say mail sent successfully and my host was "".  Once I added jboss-seam-mail.jar, activation.jar and mail.jar, it started working and I got mail send failure(previously no exceptions at all occurred which was bizarre..should at least expect ClassNotFound but that didn't occure...not sure why).  I also had a colleague take a look..we spent about an hour scratching our heads on this one and trying different stuff but with no logs, it made it difficult.


                oh well, hopefully this post helps others out.  mail works great a kicks butt once you get it working!!!