Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 20th, 2004, 06:15 AM
Authorized User
 
Join Date: Jul 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sherbir
Default Send mail to multiple recipients...it hurts

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
__________________
Regards,
Sherbir
 
Old September 24th, 2004, 01:04 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.








Similar Threads
Thread Thread Starter Forum Replies Last Post
Send mail and attachments with PHP mail function Lofa Beginning PHP 1 June 2nd, 2008 03:24 PM
send mail chavakoti BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 1 September 4th, 2007 05:03 AM
Send e-mails to multiple recipients using database misskaos Classic ASP Basics 6 October 17th, 2006 11:09 PM
Send email using CDO, multiple recipients for DSN? Mattallyc Classic ASP Professional 7 October 2nd, 2006 10:43 AM
send message to many recipients eda BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 May 29th, 2006 08:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.