private void sendMimeMessage( final List<String> recipients, final String from, final String subject, final String body, final File[] attachments ) {
for (String recipient : recipients) {
final String to = recipient;
Assert.isTrue( to != null && to.length() != 0 && to.indexOf( '@' ) > -1 );
logger.debug("Sending email to: {} from: {} subject: {}", new Object[]{to, from, subject});
javaMailSender.send(new MimeMessagePreparator() {
@Override
public void prepare( MimeMessage mimeMessage ) throws MessagingException {
MimeMessageHelper message;
message = new MimeMessageHelper(mimeMessage, MimeMessageHelper.MULTIPART_MODE_MIXED, MAIL_ENCODING);
message.setFrom( from );