diff options
author | william <william.fromtw@gmail.com> | 2017-03-02 14:06:22 +0800 |
---|---|---|
committer | Florian Zschocke <fzs@users.noreply.github.com> | 2019-06-16 10:36:28 +0200 |
commit | 41e6a701953c6f3ec0c4b2375426e4205a1c6a00 (patch) | |
tree | 265def1e5b1febcdc789bb30ee0d4837f267fc61 /src | |
parent | c010ca0ae8ff24aaf343afe7301447fd23c1d44e (diff) | |
download | gitblit-41e6a701953c6f3ec0c4b2375426e4205a1c6a00.tar.gz gitblit-41e6a701953c6f3ec0c4b2375426e4205a1c6a00.zip |
encoded email's sender name with utf-8.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/gitblit/service/MailService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/service/MailService.java b/src/main/java/com/gitblit/service/MailService.java index 58acc9c0..a5cd46d4 100644 --- a/src/main/java/com/gitblit/service/MailService.java +++ b/src/main/java/com/gitblit/service/MailService.java @@ -145,7 +145,7 @@ public class MailService implements Runnable { if (StringUtils.isEmpty(fromAddress)) {
fromAddress = "gitblit@gitblit.com";
}
- InternetAddress from = new InternetAddress(fromAddress, mailing.from == null ? "Gitblit" : mailing.from);
+ InternetAddress from = new InternetAddress(fromAddress, mailing.from == null ? "Gitblit" : mailing.from,"utf-8");
message.setFrom(from);
Pattern validEmail = Pattern
|