Noel, I actually agree with Neill. I understand that mail.getRecipients() and 
modifying it works, but it is 
not intuitive and does not follow the Javabeans approach. Why not add 
setReceipients()? There isn't really an 
overhead there; you're just changing the reference of your collection from the old 
collection to the new one (and 
frankly, this also allows you to reuse the same collection). Sun's code does this 
across their entire API; we 
should do the same.

Gili

On Wed, 26 Nov 2003 13:45:34 -0500, Noel J. Bergman wrote:

>> My problem at the moment is that I want to change the recipients
>> on the Mail in my Mailet.

>> Unfortunately Mail.setRecipients doesn't seem to exist

>  Collection recipients = mail.getRecipients();

>Just change it.

>       --- Noel

>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to