Thanks for the info. It is well appreciated.
BTW, please do not post to both [EMAIL PROTECTED] and [EMAIL PROTECTED] Do not use [EMAIL PROTECTED] mailing list. Thanks.
At 04:39 PM 8/6/2004, you wrote:
hi all, I think the SMTP appender can be cahnge to connect to authenticated server by this way: -
1. Add four more functions in the SMTPAppender class say getpassword, setpassword, getUsername, setUserName. user will give these thing from properties file.
2. Extends the class Authenticator of java library and implement the function getPasswordAuthentication(). take the username and pasword which user has provided through the properties file and return the PasswordAuthentication object with the username and password.
Authenticator class will take care of it.
3. Finally change the activateOption method in SMTPAppender and add one line as :-
Authenticator auth = new MyAuthenticator(); Session session = Session.getInstance(props, auth);
I think that settles it. So if you really want to support the authenticated server .. HERE IT IS AND A GREAT STEP.
There may be some hidden stuffs but i tknow you can overcome easily. Hope you may want to do it.
--thanks sumit
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Ceki G�lc�
For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
