Re: about sending several emails in a batch

2008-02-24 Thread zheng hao
you mean the current implementation, I see. we mean the same idea. On Sun, Feb 24, 2008 at 10:58 PM, Siegfried Goeschl < [EMAIL PROTECTED]> wrote: > * /** > * Sends the email. Internally we build a MimeMessage > * which is afterwards sent to the SMTP server. > * > * @return the message id of

Re: about sending several emails in a batch

2008-02-24 Thread Siegfried Goeschl
* /** * Sends the email. Internally we build a MimeMessage * which is afterwards sent to the SMTP server. * * @return the message id of the underlying MimeMessage * @throws EmailException the sending failed */ public String send() throws EmailException { this.buildMimeMessage(); retu

Re: about sending several emails in a batch

2008-02-22 Thread zheng hao
hi, 1). yes, it will resemble the javamail api to a great extent. but we can provide more convenient methods than the api. 2). I am not clear what do you mean by ' a Email can send itself'? could you provide some kind of code snippet? On Fri, Feb 22, 2008 at 3:26 PM, Siegfried Goeschl < [EMAIL PR

Re: about sending several emails in a batch

2008-02-21 Thread Siegfried Goeschl
Hi, I have two thoughts along the line +) using the Commons Email API you get access to the underlying MimeMessage which is pretty much the "clean bean email" you are looking for +) the fact that a Email can send itself is "inversion of control" but the bad one - using some sort of transport l

Re: about sending several emails in a batch

2008-02-20 Thread zheng hao
ok. I will learn the process, because i am new to open source process. thank you. Hao Zheng On Thu, Feb 21, 2008 at 12:19 AM, James Carman <[EMAIL PROTECTED]> wrote: > Maybe you should file a JIRA asking for an enhancement. This sounds > like it could be useful and not very difficult. > > On 2/

Re: about sending several emails in a batch

2008-02-20 Thread James Carman
Maybe you should file a JIRA asking for an enhancement. This sounds like it could be useful and not very difficult. On 2/20/08, zheng hao <[EMAIL PROTECTED]> wrote: > yeah, I just mean that. > > it's much like the api of javamail itself, but we can provide more > conventient usage than it. most i

Re: about sending several emails in a batch

2008-02-20 Thread zheng hao
yeah, I just mean that. it's much like the api of javamail itself, but we can provide more conventient usage than it. most important is the efficiency of sending mails in a batch. On Feb 20, 2008 7:17 PM, Torsten Curdt <[EMAIL PROTECTED]> wrote: > You mean something like this? > > EmailTransmis

Re: about sending several emails in a batch

2008-02-20 Thread Torsten Curdt
You mean something like this? EmailTransmission trans = new EmailTransmission(); trans.setHostName("smtp.myserver.org"); HtmlEmail email1 = new HtmlEmail(); ... HtmlEmail email2 = new HtmlEmail(); ... trans.addEmail(email1); trans.addEmail(email2); .. trans.send(); Sounds useful to m