See the configuration doc for tomcat if you have further questions on configuring the javamail resource in tomcat's server.xml
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html
here's an example, the reference that Chris provides details all the parameters you can set for the Mail Session via this method.
<Context ...> ... <Resource name="mail/Session" auth="Container" type="javax.mail.Session"/> <ResourceParams name="mail/Session"> <parameter> <name>mail.smtp.host</name> <value>localhost</value> </parameter> <parameter> <name>mail.smtp.port</name> <value>25</value> </parameter> </ResourceParams> ... </Context>
Cheers, Mark
Christopher Schultz wrote:
Bopanna,
1. This is not related to Tomcat. Please try a JavaMail list next time.
2. RTFM: http://java.sun.com/products/javamail/javadocs/overview-summary.html
Search the page for "port".
-chris
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Mark Diggory Software Developer Harvard MIT Data Center http://osprey.hmdc.harvard.edu
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]