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

javamail for numerous mail servers on tomcat

2006-05-19 Thread lio tomcat
Hello world, I'm trying to use javamail api in order to fecth/sen mails in a tomcat servlet. Sor far, it's fine. more : it works. But my needs are going beyond this firsyt step. As i understand, the mail servers (smtp, pop, ...) are defined as resources in tomcat (or watever servlet) in its spec