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>