File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes sending mail to multiple user using Array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "sending mail to multiple user using Array" Watch "sending mail to multiple user using Array" New topic

sending mail to multiple user using Array

Chuan Ren
Ranch Hand

Joined: Aug 04, 2003
Posts: 42
I found that if I were to use a simple thing as mailto to a list of user in a String format. i.e.
<% String finalEmailList = ","; %>
<a href="mailto:<%=finalEmailList%>">Email candidate</a>
Groupwise does not really like it and only sent email to the first user. Any clue on how to solve this?
I have since created a form post thing...but still stuck. I am not sure if I need to introduce Array. If I need to, how could I get the email into array and then pass it via form post?
Any help is much appreciated. Thank you.

Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
I'm not familiar with that package.
Using standard JavaMail, you could use Message.addRecipient() passing an array of email addresses stored as Address objects.

wood burning stoves
subject: sending mail to multiple user using Array