Return-Path: Delivered-To: apmail-jakarta-log4j-user-archive@jakarta.apache.org Received: (qmail 98065 invoked by uid 500); 5 Sep 2001 12:44:28 -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 98036 invoked from network); 5 Sep 2001 12:44:27 -0000 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: SMTP Host and SMTP appender X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 Date: Wed, 5 Sep 2001 13:43:55 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: SMTP Host and SMTP appender Thread-Index: AcE2B24F7KtvKLMdTWqhNkY0fCsUaAAAMjRA From: "Jon Skeet" To: "LOG4J Users Mailing List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > 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.=20 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 =3D System.getProperties(); props.setProperty (...); you should use Properties props =3D new Properties (System.getProperties()); props.setProperty (...); that way your code will work even while Log4J is still broken. Jon --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-user-help@jakarta.apache.org