Skip to content

Commit

Permalink
mail: Fix sender name charset bug
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Feb 6, 2016
1 parent b8170b9 commit 8896dff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/NotificationMail.java
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ private static void sendMail(INotificationEvent event, Set<MailRecipient> toList
}

final EventEmail email = new EventEmail(event);

email.setCharset("utf-8");
try {
email.setFrom(Config.getEmailFromSmtp(), event.getSender().name);

Expand Down Expand Up @@ -507,7 +507,7 @@ private static void sendMail(INotificationEvent event, Set<MailRecipient> toList
}
email.setHtmlMsg(getHtmlMessage(lang, message, urlToView, resource, acceptsReply));
email.setTextMsg(getPlainMessage(lang, message, Url.create(urlToView), acceptsReply));
email.setCharset("utf-8");

email.addReferences();
email.setSentDate(event.getCreatedDate());
Mailer.send(email);
Expand Down

0 comments on commit 8896dff

Please sign in to comment.