To ensure the email is sent only once to all recipients (including CC and BCC), you can consolidate the recipients into a single email send operation rather than looping through each toEmail individually. Try this Map<String, String> emailParams = new HashMap<>();emailParams.put("subject", subject);...