javaMailSender.send(mimeMsg);
logger.info("mail sended from {} to {} with subject {}", new Object[] {
fromMailbox, mailConext.getRecipients(), subject });
}
} catch (AddressException ex) {
throw new NotificationException("Exception while sending message.", ex);
} catch (MessagingException ex) {
throw new NotificationException("Exception while sending message.", ex);
} catch (UnsupportedEncodingException ex) {
throw new NotificationException("Exception while sending message.", ex);
}
afterSend(mailConext, mimeMsg);
}