IntelliJ Java IDE
The moose likes Other JSE/JEE APIs and the fly likes sending email to multiple Recipients Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply 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: 47

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: 774

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: 47




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

Joined: Jan 10, 2002
Posts: 50693

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 774

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
 
 
subject: sending email to multiple Recipients
 
Threads others viewed
Tomcat error HTTP Status 500 -(JSP page error (Unable to compile class for JSP )
How to do self marketing / branding in the company?
Ordering Enthuware EJB+
jsp&java mail :How to send email to multiple users ?
JavaMail but no SMTP
developer file tools