Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 72804 invoked from network); 1 Dec 2005 14:16:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Dec 2005 14:16:15 -0000 Received: (qmail 6881 invoked by uid 500); 1 Dec 2005 14:16:06 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 6838 invoked by uid 500); 1 Dec 2005 14:16:06 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 6827 invoked by uid 99); 1 Dec 2005 14:16:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2005 06:16:06 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [205.234.172.66] (HELO a.mx.zettai.net) (205.234.172.66) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2005 06:17:31 -0800 Received: (qmail 27805 invoked by uid 89); 1 Dec 2005 14:15:40 -0000 Received: by simscan 1.1.0 ppid: 27648, pid: 27778, t: 0.4320s scanners: attach: 1.1.0 clamav: 0.83/m:31/d:852 Received: from unknown (HELO ?192.168.0.9?) (epugh@opensourceconnections.com@205.160.101.136) by 0 with SMTP; 1 Dec 2005 14:15:40 -0000 Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: References: Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Message-Id: <51155E7E-CB29-4B95-A6E8-583BE84C21BC@upstate.com> Content-Transfer-Encoding: quoted-printable From: Eric Pugh Subject: Re: [email] API improvement suggestion : TLS & JNDI Date: Thu, 1 Dec 2005 09:15:34 -0500 To: "Jakarta Commons Users List" X-Mailer: Apple Mail (2.746.2) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N If you would like to submit patches for this, that would be great. =20 Just add them to bugzilla issues. For part 1, it seems like we =20 should have different Authentication types.. The standard one and =20 the TLS one. Then, you just configure your Authentication object and =20= pass it in.. At any rate, I look forward to your patches and comments! ERic On Nov 30, 2005, at 4:32 AM, Q.. Werty wrote: > Hi, > > Commons-email is a great componant. > I'd like to suggest two improvements for facilities in API : > > 1. TLS support > Add methods to use TLS during authentification when needed. > =3D> this require adding methods such "void setTLS(boolean > withTLS)" and "boolean isTLS()" and adding the property > mail.smtp.starttls.enable=3Dtrue to MailSessionObject > =3D> in version 1.0, TLS can be supported by adding the property > "mail.smtp.starttls.enable" bto system before sending message. > It woudd be more friendly to just have a setTLS method, > moreover this property woud just be added to MaillSession > object and not to system properties. > > 2. JNDI support > In J2EE container, mail session can be obtained from JNDI > direcory. A method like "void setMailSessionFromJNDI(String > jndi name)" would ne more friendly too. > =3D> in version 1.0 we have to do the JNDI search in code. This > method would allow to simply pass the JNDI name of mail sesssion. > > > Acc=E9dez au courrier =E9lectronique de La Poste : www.laposte.net ; > 3615 LAPOSTENET (0,34=80/mn) ; t=E9l : 08 92 68 13 50 (0,34=80/mn) > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org