Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 14378 invoked from network); 19 May 2006 12:52:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 May 2006 12:52:24 -0000 Received: (qmail 24136 invoked by uid 500); 19 May 2006 12:52:11 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 23858 invoked by uid 500); 19 May 2006 12:52:10 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 23847 invoked by uid 500); 19 May 2006 12:52:10 -0000 Delivered-To: apmail-jakarta-tomcat-user@jakarta.apache.org Received: (qmail 23844 invoked by uid 99); 19 May 2006 12:52:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 May 2006 05:52:10 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lio.tomcat@gmail.com designates 64.233.182.189 as permitted sender) Received: from [64.233.182.189] (HELO nf-out-0910.google.com) (64.233.182.189) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 May 2006 05:52:09 -0700 Received: by nf-out-0910.google.com with SMTP id m18so258411nfc for ; Fri, 19 May 2006 05:51:48 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=mdmsgVgpHkZQ4pfaiCpbL+LFugA3AM1hEM+Epv6UcaLNmi9huZQpc+G4fRxfEmpfsHaQXvtmQtjZptUhr37JCyIy4i0henTVg7kaIzgdOSfmn/qbMf/48OeDDajU0XL76/ysKcHr6C7mTZIdzzAD8JU5S1MksW6Xa7M2XyNjhmE= Received: by 10.48.48.16 with SMTP id v16mr1410386nfv; Fri, 19 May 2006 05:51:48 -0700 (PDT) Received: by 10.48.211.5 with HTTP; Fri, 19 May 2006 05:51:48 -0700 (PDT) Message-ID: <7c6cc6110605190551q3b1ac246rbc8c1d16ca15c464@mail.gmail.com> Date: Fri, 19 May 2006 14:51:48 +0200 From: "lio tomcat" To: tomcat-user@jakarta.apache.org Subject: javamail for numerous mail servers on tomcat MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello world, I'm trying to use javamail api in order to fecth/sen mails in a tomcat serv= let. Sor far, it's fine. more : it works. But my needs are going beyond this firsyt step. As i understand, the mail servers (smtp, pop, ...) are defined as resources in tomcat (or watever servlet) in its specific config file (server.xml). Then the servlet is able to retrieve one of these server throught a context, a session and a transport objects. Right? My aim is to build dynamically (by the servlet) a transport with parameters received in request. Clear? By the way, i read : "In general, applications should not need to use the classes in this package directly. Instead, they should use the APIs defined by javax.mail package (and subpackages). Applications should never construct instances of SMTPTransport directly. Instead, they should use the Session method getTransport to acquire an appropriate Transport object. " (see : file:///C:/lionel/dwd/sw/javamail-1_4/javamail-1.4/docs/javadocs/ind= ex.html?index-filesindex-1.html) So i'm wondering how i should use the Session method getTransport to acquire an appropriate Transport object. Or if i should let javamail down and look for another solution. Any comment/idea/link is welcome thx, --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org