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?
Yes, of course, assuming your mail server supports
distribution lists. Most mail servers do, but exactly
how you create and administer a mailing list varies
from server to server.
Once you've created the mailing list on the server,
just use the name of the list in the To field of the