Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 29782 invoked from network); 13 Dec 2009 13:23:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Dec 2009 13:23:08 -0000 Received: (qmail 90895 invoked by uid 500); 13 Dec 2009 13:23:07 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 90786 invoked by uid 500); 13 Dec 2009 13:23:06 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 90776 invoked by uid 99); 13 Dec 2009 13:23:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Dec 2009 13:23:06 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mmehrwald@gmx.at designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 13 Dec 2009 13:22:57 +0000 Received: (qmail invoked by alias); 13 Dec 2009 13:22:36 -0000 Received: from p57B1C789.dip.t-dialin.net (EHLO [192.168.2.34]) [87.177.199.137] by mail.gmx.net (mp026) with SMTP; 13 Dec 2009 14:22:36 +0100 X-Authenticated: #5723743 X-Provags-ID: V01U2FsdGVkX1+UardtK5iUcpp8/BQEV3pg7pbKR+UVVa57ryHd1n 53MApBMc+7iRr7 Message-ID: <4B24EA9A.30602@gmx.at> Date: Sun, 13 Dec 2009 14:22:34 +0100 From: Markus Mehrwald User-Agent: Thunderbird 2.0.0.23 (X11/20090825) MIME-Version: 1.0 To: Commons Users List Subject: Re: Mail with attachment References: <4B217D2D.30906@gmx.at> <4B2497AF.2080201@it20one.at> In-Reply-To: <4B2497AF.2080201@it20one.at> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.65 X-Virus-Checked: Checked by ClamAV on apache.org Hi Siegfried, I use commons-email 1.1.1 which is actually 1.1 but I did some fixes for the charset and multipart mails (I saw that this problems still occures in 1.2). I put the mail into a queue where my thread (just one) gets them out and send it. Every mail gots its own attachment. I had some code which deletes them but this did not work because my code was faster then the smtp server ;) I have got a workaround now where I get the smtp transport from the session, add the listener and use sendMessage instead of Transport.send() in the commons-email. Now I will be notified if the mail is sent and with that I am able to send the mails in a row. This works for me at the moment. Regards, Markus Siegfried Goeschl schrieb: > Hi Markus, > > a few questions regarding your problem .... > > +) which commons-email version are you using? > +) are you sending emails across multiple threads (I would assume so) > +) "sending" is a synchronous operation anyway (when considering mail > transmission to the SMTP server) so serializing is easy > +) are the mail attachment resources shared across multiple emails or > asking the other way around - are the attachments deleted somewhere in > your busing logic > > Cheers, > > Siegfried Goeschl > > > > Markus Mehrwald wrote: >> Hi, >> >> I have a problem with the commons mail package. I send mails with >> attachments but only the attachment from the first mail comes in. The >> second mail is there but without attachment. When I use the debugger it >> works so it seems for me that it is a time problem. Do I have the >> possibility to get informed when the first mail is gone and send then >> the second one? >> >> Thanks, >> Markus >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org >> For additional commands, e-mail: user-help@commons.apache.org >> >> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org