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
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 )