Hi All,

I am logging critical errors in the system using SMTPAppender in log4j.
It is working fine. My problem is that I want to send other emails from
my system using a different SMTP host than the one used for logging.

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. 

Doesn't JavaMail support multiple smtp hosts in the same jvm?

Ashish Shrestha

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to