I want to send a message to multiple Recipients using following the method :
message.addRecipient(Message.RecipientType.TO, String arg1);
<
Hi every one this code is workin for me please try with this for sending mail to multiple recepients
private String recipient = "yamabs@gmail.com ,priya@gmail.com ";
String[] recipientList = recipient.split(",");
InternetAddress[] recipientAddress = new InternetAddress[recipientList.length];
int counter = 0;
for (String recipient : recipientList) {
recipientAddress[counter] = new InternetAddress(recipient.trim());
counter++;
}
message.setRecipients(Message.RecipientType.TO, recipientAddress);