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: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
