Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
sending mail to multiple recipients
Krishna Rao
Greenhorn
Posts: 8
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am able to send email from
java
but now i want to send to multiple email id's can anyone advice me on this issue
Thanks
Krishna
Ta Ri Ki Sun
Ranch Hand
Posts: 442
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
String firstAddy = example@example.com; String secondAddy = example2@example.com; InternetAddress addr = new InternetAddress(firstAddy); InternetAddress addr2 = new InternetAddress(secondAddy); message.addRecipients(Message.RecipientType.TO, new InternetAddress[] {addr, addr2 });
since the method addRecipients takes an array of addy's you can add as many as you like
Amateurs built google. Professionals built the titanic. We can't find the guy that built this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Interpreting stack message characters
The Head First Formula
Sending Email in java through MS Exchange Server
Java Graphs
Can we attach multiple email addresses through spring email
More...