private void setRecipients ( Email email , MimeMessage mimeMsg ) throws MessagingException , AddressException , UnsupportedEncodingException { for ( Recipient recipient : email . getRecipients ( ) ) { mimeMsg . addRecipient ( convert ( recipient . getType ( ) ) , toInternetAddress ( recipient . getAddress ( ) ) ) ; } }
Set the recipients addresses on the mime message .