message.addRecipient(Message.RecipientType.TO, new InternetAddress(email));
message.setText(content);
Transport.send(message);
} catch (NoSuchProviderException e) {
throw new NotificationServiceException("Cannot send email. No such provider exception: " + e.getMessage(),
e);
} catch (MessagingException e) {
throw new NotificationServiceException("Cannot send email. Messaging Exception: " + e.getMessage(), e);
}
}