Return-Path: Delivered-To: apmail-jakarta-log4j-user-archive@jakarta.apache.org Received: (qmail 78562 invoked by uid 500); 5 Sep 2001 12:31:58 -0000 Mailing-List: contact log4j-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: "LOG4J Users Mailing List" Delivered-To: mailing list log4j-user@jakarta.apache.org Received: (qmail 78479 invoked from network); 5 Sep 2001 12:31:56 -0000 Sender: dogmatix@parijat.info.com.np Message-ID: <3B961C98.4F460092@info.com.np> Date: Wed, 05 Sep 2001 18:22:44 +0545 From: BillWorker 2i Development Team Organization: Infocom Pvt. Ltd. X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 To: log4j-user@jakarta.apache.org Subject: SMTP Host and SMTP appender Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: log4j-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-user-help@jakarta.apache.org