RE: HOW-TO : Mail session and authentication password

2004-06-17 Thread Q\. Werty
OK, thanks for you response. I've not understood how you specify/pass your SMTPAuthenticator from JNDI resources. What i want, is to be able to specify my SMTP password FROM SERVER.XML and not from application (like JDBC resources). Is your SMTPAuthenticator build by the application (and therefore

RE: HOW-TO : Mail session and authentication password

2004-06-17 Thread Carl Olivier
Hi. I extended an javax.mail.Authenticator to set username and password for SMTP authentication: private static class SMTPAuthenticator extends Authenticator { String username, password; SMTPAuthenticator( String username, String password )