I'm not sure what's confusing you. Do you know how to send one message?
Just repeat that code 20 times, or put it in a loop.
You can do it more efficiently if you manage the Transport object explicitly,
rather than relying on the Transport.send method. Connect the Transport
before sending the first message and close it after sending the last message.
See the JavaMail FAQ.
Well problem is a kind a different.I have 20 different mail addresses and all of them has it`s own attach,
for example:
some@mail.com has attach c:\attach1.zip
some1@mail.net has attach c:\attach2.zip
...
some20@ps.com has attach c:\attach20.zip
so the loop is not a solution ,the fact is that i can put it 20 time, different code with different paramaters and to send it.
But this second stuff with this Transport object,can you give more informations on it or samoe links or maybe some code? if you have.
Thanks for help