diff options
author | Rémi Saurel <rems4e@users.noreply.github.com> | 2017-09-21 06:29:45 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-09-21 12:29:45 +0800 |
commit | 66bc0ac251f564491ed0a6d5d4cfa0a11af09303 (patch) | |
tree | fa07c36ff406ec748e628f64e997860a2802ee20 /models/mail.go | |
parent | 1fbfccb4fc9fc99405174b529206524179177474 (diff) | |
download | gitea-66bc0ac251f564491ed0a6d5d4cfa0a11af09303.tar.gz gitea-66bc0ac251f564491ed0a6d5d4cfa0a11af09303.zip |
Fix sending mail with a non-latin display name. #2102 (#2559)
* Fix sending mail with a non-latin display name. #2102
Signed-off-by: Rémi Saurel <contact@remi-saurel.com>
* Take into account the possibility that setting.MailService.From is in `name <email@address>` format. #2102
Signed-off-by: Rémi Saurel <contact@remi-saurel.com>
Diffstat (limited to 'models/mail.go')
-rw-r--r-- | models/mail.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/mail.go b/models/mail.go index b7d24a06a1..afcddb6d23 100644 --- a/models/mail.go +++ b/models/mail.go @@ -167,7 +167,7 @@ func composeIssueCommentMessage(issue *Issue, doer *User, comment *Comment, tplN log.Error(3, "Template: %v", err) } - msg := mailer.NewMessageFrom(tos, fmt.Sprintf(`"%s" <%s>`, doer.DisplayName(), setting.MailService.FromEmail), subject, content.String()) + msg := mailer.NewMessageFrom(tos, doer.DisplayName(), setting.MailService.FromEmail, subject, content.String()) msg.Info = fmt.Sprintf("Subject: %s, %s", subject, info) return msg } |