Skip to content
Advertisement

How to send an email to multiple recipients in Spring

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 work?

JavaScript

Advertisement

Answer

You have the choice to use the following 4 methods. I have provided examples of the two methods useful in this case. I have consolidated this information from the commentators below.

JavaScript

From the Javadoc:

enter image description here

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement