> However, I am not able to do this. Even though I set the smtp host in
> the property before creating a session using JavaMail. My code still
> uses the smtp host set in the log4j smtp appender.
Despite my previous comment (ie log4j really *is* broken, and I'll be
patching it) I suspect your code is flawed as well - how are you setting
the smtp host in *your* code?
Rather than
Properties props = System.getProperties();
props.setProperty (...);
you should use
Properties props = new Properties (System.getProperties());
props.setProperty (...);
that way your code will work even while Log4J is still broken.
Jon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]