aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes sending email to multiple Recipients Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "sending email to multiple Recipients" Watch "sending email to multiple Recipients" New topic
Author

sending email to multiple Recipients

Mariya Antony christopher
Ranch Hand

Joined: Jan 24, 2012
Posts: 49

Hi,
Iam developing webapplication in that one module it will sending alert email to persons who are not belong to certain criteria
.i have implemented to sending a email to particular person but i need help to implement mail sending multiple Recipents.
Suggest the way to proceed!


Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

which bit of sending to multiple recipients is confusing you?
can you show us how you are sending it to one person?
Mariya Antony christopher
Ranch Hand

Joined: Jan 24, 2012
Posts: 49




[Edit - added code tags - see UseCodeTags]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

Nothing to do with JSP. Moved to a more appropriate location.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

if you look at the java api docs for MimeMessage you will find the very methods you are after.
addRecipients

http://docs.oracle.com/javaee/6/api/javax/mail/internet/MimeMessage.html
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: sending email to multiple Recipients