message.setSubject(subject);
message.setText(messageText);
Transport transport = session.getTransport("smtp");
transport.connect(properties.getProperty("mail.smtp.host", null), properties.getProperty("mail.smtp.user", null), properties.getProperty("mail.smtp.password", null));
transport.sendMessage(message, message.getAllRecipients());
transport.close();
} catch (AddressException e) {
throw new CoreException(new Status(IStatus.ERROR, UserAdminActivator.PI_USERADMIN, e.getMessage(), e));
} catch (MessagingException e) {
throw new CoreException(new Status(IStatus.ERROR, UserAdminActivator.PI_USERADMIN, e.getMessage(), e));