|
Subject:
|
Send mail to multiple recipients...it hurts
|
|
Posted By:
|
sherbir
|
Post Date:
|
9/20/2004 6:15:46 AM
|
Hi all, My question is a pretty simple 1.
I am using the JavaMail API in one of my web-based applications.
My problem is , how could I send mails 2 more than 3 recipients ?
JavaMail allows only 3 recipients : TO, CC and BCC.
What if I want 2 send mails to more than these 3 ?
Any suggessions ?
Regards, Sherbir
|
|
Reply By:
|
angrycat
|
Reply Date:
|
9/24/2004 1:04:59 PM
|
Hello,
You seem a bit confused, to, cc and bcc are the types of recipient, you can send to multiple recipients by separating the addresses with a comma:
TO user1@user1, user2@user2, .....
Problem is if you use 'TO' or 'CC' recipients will see each other in the header. You could obviously get around this using 'BCC' but thats a bad fix. The only other way I know would be to loop round all recipients and send each their own mail, which would be slower, but in my opinion the best solution.
|