Re: javamail for numerous mail servers on tomcat

2006-05-22 Thread lio tomcat
Thx for the tip. It macth exactly my need. Just a precision, i had to code it this way : Session mailSession = Session.getInstance(props, null); So the server can be different for each request. Sorry for this late answer but problems have priorities... On 5/19/06, David Kerber <[EMAIL PROTEC

Re: javamail for numerous mail servers on tomcat

2006-05-19 Thread David Kerber
Dynamically-defined mail servers work fine in Tomcat; I'd be in deep kimshe if they didn't. Here are some excerpts from the code I use: Properties props = new Properties(); props.put( "mail.smtp.host", server name> ); Session mailSession = Ses