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
The better approach is to create an array containing the address of multiple recipients.
MimeMessageHelper helper = new MimeMessageHelper( message, true ); helper.setTo( String[] to );