0 Replies Latest reply on Dec 29, 2006 10:53 AM by vishwanath.nadimpally

    JBoss with Gmail

    vishwanath.nadimpally

      How can we configure JBoss to use Gmail smtp. I am using 4.0.2 and I want Jboss to use gmail smtp. I did something in my mail-service.xml.

      <attribute name="Configuration">
       <!-- Test -->
       <configuration>
       <!-- Change to your mail server prototocol -->
       <property name="mail.transport.protocol" value="smtp"/>
      
       <property name="mail.smtp.starttls.enable" value="true"/>
       <property name="mail.smtp.host" value="smtp.gmail.com"/>
       <property name="mail.smtp.auth" value="true"/>
      
      
       <!-- Change to the SMTP gateway server -->
       <!-- Change to the address mail will be from -->
       <property name="mail.from" value="someaddress@gmail.com"/>
      
       <!-- Enable debugging output from the javamail classes -->
       <property name="mail.debug" value="false"/>
       </configuration>
       </attribute>
      


      But this doesnt work. I keep getting error

      "class javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first 9sm23453515agc"

      Can some one help me please?