Skip to content

Commit

Permalink
Fix some merging errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hexTileX committed Oct 13, 2017
1 parent 9de7054 commit 788d014
Showing 1 changed file with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,19 +260,6 @@ private void sendEmail(Email mail) {
for (User receiver : mail.getRecipients()) {
if (receiver.getEMail() != null) {
mailMessage.addRecipients(Message.RecipientType.BCC, InternetAddress.parse(receiver.getEMail(), false));
}
// use activityAction and dataType to generate email text
String subject = "";
String bodyText = "";
String objectName = "";
String resourcePath = "";
if (dataType == Activity.DataType.PROJECT) {
if (activityAction == Activity.ActivityAction.CREATE) {
subject = Localization.getInstance().getResourceBundle().getString("email.subject.project.created");
bodyText = Localization.getInstance().getResourceBundle().getString("email.bodyText.project.created");
} else if (activityAction == Activity.ActivityAction.UPDATE) {
subject = Localization.getInstance().getResourceBundle().getString("email.subject.project.updated");
bodyText = Localization.getInstance().getResourceBundle().getString("email.bodyText.project.updated");
}
}
mailMessage.setSubject(mail.getSubject());
Expand All @@ -288,7 +275,8 @@ private void sendEmail(Email mail) {
mailMessage.setSentDate(mail.getCreationDate());

Transport.send(mailMessage);
} catch (MessagingException ex) {

} catch (Exception ex) {
logger.warning(ex.getMessage());
}
});
Expand Down

0 comments on commit 788d014

Please sign in to comment.