logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <jon.sk...@peramon.com>
Subject RE: SMTP Host and SMTP appender
Date Wed, 05 Sep 2001 13:14:41 GMT
> I am using Properties props = new Properties();
> props.setProperty(....);
> Anyway, my mistake was I was using
> Session session = Session.getDefaultInstance(props, null);

Ah, right... and as Log4j is using Session.getDefaultInstance, only one
was going to win.
> I have now replaced it with 
> Session session = Session.getInstance(props, null);
> I will check if it works tomorrow.

I can't see why it wouldn't. I'll submit another patch for SMTPAppender
to fix this as well - there's no reason to use the default session.


To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

View raw message