Jon Skeet wrote:
> 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 (...);
>
I am using Properties props = new Properties();
props.setProperty(....);
Anyway, my mistake was I was using
Session session = Session.getDefaultInstance(props, null);
I have now replaced it with
Session session = Session.getInstance(props, null);
I will check if it works tomorrow.
Ashish Shrestha.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]