The email gets sents only to the last email address in the String[] to array. I\'m intending to send to all email addresses added to the array. How can I make that
String[] to
You can try this, instead of
helper.setTo(to); String multipleEmailIds = "abc@abc.com, abc@abc.com" mimeMsg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(multipleEmailIds ));