sbyonge wrote:
I am having trouble with mail session in Geronimo. I updated
var/config/config.xml to point to remote STMP host
<module name="org.apache.geronimo.configs/javamail/2.1.1/car">
<gbean name="SMTPTransport">
<attribute name="host">smtpgw.mycom.com</attribute>
<attribute name="port">25</attribute>
</gbean>
</module>
However, mail session still seems to point to localhost instead of the
remote host.
How are you obtaining the mail session? SMTPTransport definition only
manages the mail session obtained via the JNDI "mail/Session" resource
lookup. If you're directly creating the mail session, you'll need to
configure the properties yourself.
Rick