This discussion is archived
2 Replies Latest reply: Jan 27, 2009 10:52 AM by 843834 RSS

Java Mail: send a SINGLE email to a distribution list

843834 Newbie
Currently Being Moderated
Is it possible to send a single email to a distribution list using Java Mail?
Please help with some code samples.

Right now, our mail program uses java mail api to send one email/person in the distribution list and runs in a for loop. Is it possible to have the distribution list in the to field and just send one single email to all persons in the list?

Thanks,
Jayashree.