java - Email multiple recipients without revealing other recipients -
i'm using javamail send emails list of recipients, don't want them able see else received email. don't want send using bcc since user doesn't see in list. thought code it, shows recipients in list. other creating loop , sending emails 1 @ time, there way this?
(note: recipients[] string array containing email addresses.)
javax.mail.internet.internetaddress[] addressto = new javax.mail.internet.internetaddress[recipients.length]; (int = 0; < recipients.length; i++) { addressto[i] = new javax.mail.internet.internetaddress(recipients[i]); } msg.setrecipients(javax.mail.message.recipienttype.to, addressto);
no, there isn't way email.
you have explicitly build , send email iterating each of recipients, 1 of them sole member of addressto
array.
Comments
Post a Comment