Hi;
I am using tomcat 5.0.16.
I configured the following uinder the global naming resources:

    <Resource auth="Container" description="U" name="mail/waves/Session"
type="javax.mail.Session"/>
….
    <ResourceParams name="mail/waves/Session">
      <parameter>
        <name>mail.smtp.host</name>
        <value>in.inter.net</value>
      </parameter>
    </ResourceParams>


However, when I try to send an email I see that 'localhost' is used instead
of 'in.inter.net'.
I also check in my code what the
session.getProperties().get("mail.smtp.host") returns and its 'localhost'

Is there a problem or bug related to configuring the smtp host in this
version?
Am I doing something wrong here?
Thanks,.

Reply via email to