2 Replies Latest reply on Apr 22, 2010 3:38 AM by shavo26

    Seam 2.2.0 mail example issue

    shavo26

      I am running through the examples provided in seam 2.2.0.GA, and i have an issue with mail example.
      my mail session is in component descriptor:




      <mail:mail-session host="smtp.gmail.com" port="587"
      username="example@gmail.com" password="secret"/>





      i get the exception:
      Could not connect to SMTP host: smtp.gmail.com, port: 587


      It instructs:





      "Setting an SMTP relay - If you have problems sending emails from this example you might have a firewall blocking outgoing email. You'll need to edit <mail:mailSession> in resources/WEB-INF/components.xml a <mail:mailSession>, set a SMTP relay to relay via and then run the ant deploy again."







      So what is the value i have to amend here in mail-session to set smtp relay?


      i have changed the host and mail example works fine, i would just like gmail host to work too.


      Thanks,
      Shane.

        • 1. Re: Seam 2.2.0 mail example issue
          cbensemann

          I use gmail for my development mail server and looking at my settings I have



          <mail:mail-session host="smtp.gmail.com" username="username"
              password="password" ssl="true" port="465" />



          • 2. Re: Seam 2.2.0 mail example issue
            shavo26

            Thanks for reply craig but i still get the exception.
            Email sending failed: Could not connect to SMTP host: smtp.gmail.com, port: 465





            <mail:mail-session host="smtp.gmail.com" username="username@gmail.com"
                password="password" ssl="true" port="465" />